agent功能开发增加MCP后端

This commit is contained in:
2025-11-08 10:58:16 +08:00
parent 6228bef5ad
commit 87d8b25768
2 changed files with 98 additions and 7 deletions

View File

@@ -1814,7 +1814,7 @@ class MCPAgentIntegrated:
plan_json = json.dumps({
"goal": plan.goal,
"reasoning": plan.reasoning,
"steps": [{"tool": step.tool, "description": step.description, "parameters": step.parameters} for step in plan.steps]
"steps": [{"tool": step.tool, "arguments": step.arguments, "reason": step.reason} for step in plan.steps]
}, ensure_ascii=False)
es_client.save_chat_message(