(self, return_result=None, raise_exception=False)
| 87 | """Mock tool manager with execute_tool and stream_execute_tools methods.""" |
| 88 | |
| 89 | def __init__(self, return_result=None, raise_exception=False): |
| 90 | self.return_result = return_result or { |
| 91 | "isError": False, |
| 92 | "content": "Tool executed successfully", |
| 93 | } |
| 94 | self.raise_exception = raise_exception |
| 95 | self.executed_tool = None |
| 96 | self.executed_args = None |
| 97 | |
| 98 | async def execute_tool(self, tool_name, arguments, namespace=None, timeout=None): |
| 99 | self.executed_tool = tool_name |
nothing calls this directly
no outgoing calls
no test coverage detected