创建测试用的工具集
()
| 406 | |
| 407 | @pytest.fixture |
| 408 | def 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 |
nothing calls this directly
no test coverage detected