mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-03 10:05:13 +00:00
feat(agent):Fix agent bug (#1953)
Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user