Add /enable /disable Feature

This commit is contained in:
Liu Zhicong
2023-09-26 01:19:33 -07:00
parent 7f11edb706
commit b271f8883e
8 changed files with 124 additions and 42 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ class AgentManager:
self.db_path = f"{user_data_dir}/messages.db"
self.loaded_agent_instance = {}
if self.agent_templete_env is None:
raise Exception("agent_manager initial failed")
return True
async def scan_all_agent(self)->None:
pass
@@ -36,7 +36,10 @@ class WorkflowManager:
self.db_file = os.path.abspath(f"{user_data_dir}/messages.db")
if self.workflow_env is None:
raise Exception("WorkflowManager initial failed")
logger.error(f"load workflow env failed!")
return False
return True
async def get_agent_default_workflow(self,agent_id:str) -> Workflow:
pass