MCPcopy Create free account
hub / github.com/livekit/agents / test_tools_always_two

Method test_tools_always_two

tests/test_tool_proxy.py:75–84  ·  view source on GitHub ↗

ToolProxyToolset always exposes exactly search_tools and call_tool.

(self)

Source from the content-addressed store, hash-verified

73
74class TestToolProxyToolset:
75 def test_tools_always_two(self):
76 """ToolProxyToolset always exposes exactly search_tools and call_tool."""
77 ts = ToolProxyToolset(
78 id="proxy",
79 tools=[WeatherToolset(), FinanceToolset()],
80 )
81 assert len(ts.tools) == 2
82 tool_names = [t.id for t in ts.tools]
83 assert "tool_search" in tool_names
84 assert "call_tool" in tool_names
85
86 async def test_tools_constant_after_search(self):
87 """Tool list stays constant even after search — no dynamic loading."""

Callers

nothing calls this directly

Calls 3

ToolProxyToolsetClass · 0.90
WeatherToolsetClass · 0.70
FinanceToolsetClass · 0.70

Tested by

no test coverage detected