feat(agent):Fix agent bug (#1953)

Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
明天
2024-09-04 10:59:03 +08:00
committed by GitHub
parent d72bfb2f5f
commit b951b50689
18 changed files with 67 additions and 46 deletions

View File

@@ -127,9 +127,6 @@ class AgentManager(BaseComponent):
def list_agents(self):
"""Return a list of all registered agents and their descriptions."""
result = []
from datetime import datetime
logger.info(f"List Agent Begin:{datetime.now()}")
for name, value in self._agents.items():
result.append(
{
@@ -137,7 +134,6 @@ class AgentManager(BaseComponent):
"desc": value[1].goal,
}
)
logger.info(f"List Agent End:{datetime.now()}")
return result