Przeglądaj źródła

feat: 统一搜索工具接入

tanjingyu 1 miesiąc temu
rodzic
commit
094dac2b90
2 zmienionych plików z 0 dodań i 14 usunięć
  1. 0 2
      agent/tools/__init__.py
  2. 0 12
      tools/__init__.py

+ 0 - 2
agent/tools/__init__.py

@@ -6,8 +6,6 @@ from agent.tools.registry import ToolRegistry, tool, get_tool_registry
 from agent.tools.schema import SchemaGenerator
 from agent.tools.models import ToolResult, ToolContext, ToolContextImpl
 
-# 导入工具模块,触发 @tool 装饰器执行,完成工具注册
-import tools  # noqa: F401
 
 __all__ = [
 	"ToolRegistry",

+ 0 - 12
tools/__init__.py

@@ -1,12 +0,0 @@
-"""
-工具模块
-
-导入此模块会自动注册所有工具到全局 ToolRegistry。
-"""
-
-from tools.search import search_posts, search_suggestions
-
-__all__ = [
-    "search_posts",
-    "search_suggestions",
-]