Merge pull request #1149 from Windpicker-owo/dev

在一些细节上完善工具
This commit is contained in:
UnCLAS-Prommer
2025-07-29 00:01:47 +08:00
committed by GitHub
3 changed files with 25 additions and 2 deletions

View File

@@ -195,6 +195,7 @@ class ComponentRegistry:
def _register_tool_component(self, tool_info: ToolInfo, tool_class: Type[BaseTool]) -> bool:
"""注册Tool组件到Tool特定注册表"""
tool_name = tool_info.name
self._tool_registry[tool_name] = tool_class
# 如果是llm可用的且启用的工具,添加到 llm可用工具列表