Agent can create todo by op_list

This commit is contained in:
Liu Zhicong
2023-11-03 01:16:32 -07:00
parent 5eced91432
commit 1fbe5ae1ea
6 changed files with 237 additions and 53 deletions
@@ -69,6 +69,7 @@ class AgentManager:
the_agent : AIAgent = await self._load_agent_from_media(agent_media_info)
if the_agent is None:
logger.warn(f"load agent {agent_id} from media failed!")
return None
the_agent.chat_db = self.db_path
return the_agent