将ToolExecutor迁移进tool_use,顺便改了两处typing

This commit is contained in:
Windpicker-owo
2025-07-27 00:24:40 +08:00
parent fa7b9dd7d8
commit 4ac487dd14
4 changed files with 403 additions and 411 deletions

View File

@@ -52,8 +52,8 @@ class ComponentRegistry:
"""编译后的正则 -> command名"""
# 工具特定注册表
self._tool_registry: Dict[str, BaseTool] = {} # 工具名 -> 工具类
self._llm_available_tools: Dict[str, str] = {} # llm可用的工具名 -> 描述
self._tool_registry: Dict[str, Type[BaseTool]] = {} # 工具名 -> 工具类
self._llm_available_tools: Dict[str, Type[BaseTool]] = {} # llm可用的工具名 -> 工具类
# EventHandler特定注册表
self._event_handler_registry: Dict[str, Type[BaseEventHandler]] = {}