(self, tools: list[ToolInfo] | None = None)
| 13 | """Mock tool manager for testing DynamicToolProvider.""" |
| 14 | |
| 15 | def __init__(self, tools: list[ToolInfo] | None = None): |
| 16 | self.tools = tools or [] |
| 17 | self.execute_tool = AsyncMock( |
| 18 | return_value=ToolCallResult( |
| 19 | tool_name="test_tool", |
| 20 | success=True, |
| 21 | result={"data": "test_result"}, |
| 22 | ) |
| 23 | ) |
| 24 | |
| 25 | async def get_all_tools(self) -> list[ToolInfo]: |
| 26 | return self.tools |
nothing calls this directly
no test coverage detected