fix: 初始化 RAG 工具后调用 set_global_rag_tool
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 5m53s

This commit is contained in:
2026-05-01 13:06:10 +08:00
parent 5bb1ae1724
commit b3387b3ec7

View File

@@ -37,6 +37,9 @@ class AIAgentService:
if rag_tool:
self.tools.append(rag_tool)
self.tools_by_name[rag_tool.name] = rag_tool
# 关键:设置全局 RAG 工具,供 rag_nodes.py 使用
from app.main_graph.nodes.rag_nodes import set_global_rag_tool
set_global_rag_tool(rag_tool)
# 2. 构建各模型的 Graph使用新版 React 模式)
chat_services = get_all_chat_services()