Validate agent description, DRY metadata (#321)

* Validate desc, DRY

* Update python/src/agnext/core/_base_agent.py

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
This commit is contained in:
Andreas Volkmann
2024-08-05 11:07:19 -07:00
committed by GitHub
parent 37be630dd8
commit efa87784cc
3 changed files with 6 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ Team-One is a generalist multi-agent softbot that utilizes a combination of five
<center>
<img src="./imgs/team-one-landing.png" alt="drawing" style="width:350px;"/>
</center
</center>

View File

@@ -82,8 +82,9 @@ class LedgerOrchestrator(BaseOrchestrator):
async def _get_team_description(self) -> str:
team_description = ""
for agent in self._agents:
name = (await agent.metadata)["name"]
description = (await agent.metadata)["description"]
metadata = await agent.metadata
name = metadata["name"]
description = metadata["description"]
team_description += f"{name}: {description}\n"
return team_description