重构架构:恢复统一的 llm_call 节点,移除错误的 final_response 节点
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 5m50s

This commit is contained in:
2026-05-01 14:01:48 +08:00
parent 1e15a0e550
commit 4ee769a79f
4 changed files with 94 additions and 161 deletions

View File

@@ -46,7 +46,7 @@ class AIAgentService:
for name, llm in chat_services.items():
try:
info(f"🔄 初始化模型 '{name}'...")
graph = build_react_main_graph().compile(checkpointer=self.checkpointer)
graph = build_react_main_graph(llm=llm, tools=self.tools).compile(checkpointer=self.checkpointer)
self.graphs[name] = graph
info(f"✅ 模型 '{name}' 初始化成功")
except Exception as e: