refactor(provider): formalize tool lookup contract

This commit is contained in:
huanghuoguoguo
2026-06-06 15:02:47 +08:00
parent cb33bf3260
commit edadff8971
6 changed files with 78 additions and 17 deletions
@@ -525,7 +525,7 @@ class MCPLoader(loader.ToolLoader):
return True
return False
async def _get_tool(self, name: str) -> resource_tool.LLMTool | None:
async def get_tool(self, name: str) -> resource_tool.LLMTool | None:
"""Get tool by name.
Args: