Merge pull request #1135 from better629/feat_android

Feat android assistant agent
This commit is contained in:
Alexander Wu 2024-04-04 21:31:41 +08:00 committed by GitHub
commit 9e26a40c89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 2345 additions and 29 deletions

View file

@ -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