refactor: 整理文件夹结构,修复 create_serde 导入问题
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m50s
Some checks failed
构建并部署 AI Agent 服务 / deploy (push) Failing after 6m50s
- 移动 main_graph/tools/ 到 deprecated/main_graph_tools/(旧架构工具) - 移动 rag_initializer.py 和 retry_utils.py 到 core/ - 清理 main_graph/nodes/ 里的旧节点到 deprecated/ - 修复 backend.py 中 create_serde 导入问题
This commit is contained in:
25
backend/app/deprecated/main_graph_tools/graph_tools.py
Normal file
25
backend/app/deprecated/main_graph_tools/graph_tools.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""
|
||||
工具定义模块 - 子图工具 + RAG 工具 + 公共工具
|
||||
Subgraph Tools + RAG Tools + Common Tools
|
||||
"""
|
||||
|
||||
# 子图工具
|
||||
from .subgraph_tools import (
|
||||
SUBGRAPH_TOOLS,
|
||||
SUBGRAPH_TOOLS_BY_NAME,
|
||||
dictionary_tool,
|
||||
news_analysis_tool,
|
||||
contact_tool
|
||||
)
|
||||
|
||||
# 公共工具
|
||||
from .common_tools import (
|
||||
COMMON_TOOLS,
|
||||
COMMON_TOOLS_BY_NAME,
|
||||
web_search_tool,
|
||||
generate_chart_tool
|
||||
)
|
||||
|
||||
# 工具列表和映射(全局常量)
|
||||
AVAILABLE_TOOLS = SUBGRAPH_TOOLS.copy() + COMMON_TOOLS.copy()
|
||||
TOOLS_BY_NAME = {**SUBGRAPH_TOOLS_BY_NAME, **COMMON_TOOLS_BY_NAME}
|
||||
Reference in New Issue
Block a user