feat(mcp): available for provider reloading

This commit is contained in:
Junyan Qin
2025-03-19 12:41:04 +08:00
parent 40275c3ef1
commit 5640dc332d
5 changed files with 37 additions and 4 deletions

View File

@@ -46,4 +46,9 @@ class ToolLoader(abc.ABC):
@abc.abstractmethod
async def invoke_tool(self, query: core_entities.Query, name: str, parameters: dict) -> typing.Any:
"""执行工具调用"""
pass
@abc.abstractmethod
async def shutdown(self):
"""关闭工具"""
pass