26 lines
577 B
Python
26 lines
577 B
Python
"""
|
|
工具定义模块 - 子图工具 + 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}
|