(self, tool_name, arguments, namespace=None, timeout=None)
| 76 | self._fail_tools = fail_tools |
| 77 | |
| 78 | async def execute_tool(self, tool_name, arguments, namespace=None, timeout=None): |
| 79 | self.calls.append((tool_name, arguments)) |
| 80 | if tool_name in self._fail_tools: |
| 81 | return FakeToolCallResult( |
| 82 | tool_name=tool_name, success=False, error=f"{tool_name} failed" |
| 83 | ) |
| 84 | result = self._results.get(tool_name, "default result") |
| 85 | return FakeToolCallResult(tool_name=tool_name, result=result) |
| 86 | |
| 87 | |
| 88 | SAMPLE_PLAN = { |
nothing calls this directly
no test coverage detected