Method
execute
(self, tool_name: str, tool_input: str)
Source from the content-addressed store, hash-verified
| 129 | return self |
| 130 | |
| 131 | def execute(self, tool_name: str, tool_input: str) -> tuple[str, bool]: |
| 132 | if tool_name not in self._handlers: |
| 133 | return (f"Unknown tool: {tool_name}", True) |
| 134 | try: |
| 135 | result = self._handlers[tool_name](tool_input) |
| 136 | return (result, False) |
| 137 | except Exception as e: |
| 138 | return (str(e), True) |
| 139 | |
| 140 | |
| 141 | # ====================================================================== |
Tested by
no test coverage detected