mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-11 08:15:13 -05:00
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:
@@ -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>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user