MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / tool_set

Function tool_set

tests/test_tool_loop_agent_runner.py:408–416  ·  view source on GitHub ↗

创建测试用的工具集

()

Source from the content-addressed store, hash-verified

406
407@pytest.fixture
408def tool_set():
409 """创建测试用的工具集"""
410 tool = FunctionTool(
411 name="test_tool",
412 description="测试工具",
413 parameters={"type": "object", "properties": {"query": {"type": "string"}}},
414 handler=AsyncMock(),
415 )
416 return ToolSet(tools=[tool])
417
418
419@pytest.fixture

Callers

nothing calls this directly

Calls 2

FunctionToolClass · 0.90
ToolSetClass · 0.90

Tested by

no test coverage detected