File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,17 +66,17 @@ async def get_config(self):
6666 # 兼容旧格式:直接返回 subagent_orchestrator 的字段,同时附加 enhanced_subagent
6767 response_data = {
6868 "main_enable" : data .get ("main_enable" , False ),
69- "remove_main_duplicate_tools" : data .get ("remove_main_duplicate_tools" , False ),
69+ "remove_main_duplicate_tools" : data .get (
70+ "remove_main_duplicate_tools" , False
71+ ),
7072 "agents" : data .get ("agents" , []),
7173 "enhanced_subagent" : enhanced_data ,
7274 }
7375
7476 return jsonify (Response ().ok (data = response_data ).__dict__ )
7577 except Exception as e :
7678 logger .error (traceback .format_exc ())
77- return jsonify (
78- Response ().error (f"获取 subagent 配置失败: { e !s} " ).__dict__
79- )
79+ return jsonify (Response ().error (f"获取 subagent 配置失败: { e !s} " ).__dict__ )
8080
8181 async def update_config (self ):
8282 try :
You can’t perform that action at this time.
0 commit comments