mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-30 03:16:23 +02:00
Merge pull request #1135 from better629/feat_android
Feat android assistant agent
This commit is contained in:
commit
9e26a40c89
42 changed files with 2345 additions and 29 deletions
|
|
@ -119,9 +119,6 @@ class Team(BaseModel):
|
|||
)
|
||||
return self.run_project(idea=idea, send_to=send_to)
|
||||
|
||||
def _save(self):
|
||||
logger.info(self.model_dump_json())
|
||||
|
||||
@serialize_decorator
|
||||
async def run(self, n_round=3, idea="", send_to="", auto_archive=True):
|
||||
"""Run company until target round or no money"""
|
||||
|
|
@ -129,11 +126,10 @@ class Team(BaseModel):
|
|||
self.run_project(idea=idea, send_to=send_to)
|
||||
|
||||
while n_round > 0:
|
||||
# self._save()
|
||||
n_round -= 1
|
||||
logger.debug(f"max {n_round=} left.")
|
||||
self._check_balance()
|
||||
|
||||
await self.env.run()
|
||||
|
||||
logger.debug(f"max {n_round=} left.")
|
||||
self.env.archive(auto_archive)
|
||||
return self.env.history
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue