add model context protocol provider

This commit is contained in:
Dinesh Yeduguru 2024-12-19 15:45:32 -08:00
parent dc21e14f64
commit 33af4f919f
8 changed files with 160 additions and 10 deletions

View file

@ -393,3 +393,8 @@ class ToolRuntimeRouter(ToolRuntime):
tool_id=tool_id,
args=args,
)
async def discover_tools(self, tool_group: ToolGroup) -> List[Tool]:
return await self.routing_table.get_provider_impl(
tool_group.name
).discover_tools(tool_group)