Raised by a tool handler to signal an error result. A normal string return is sent as an ordinary (successful) text result. A ToolError is instead turned into a tool result with ``isError: true`` so a client that only checks ``isError`` can tell a genuine failure — e.g. the ``gh`` C
| 34 | |
| 35 | |
| 36 | class ToolError(Exception): |
| 37 | """Raised by a tool handler to signal an error result. |
| 38 | |
| 39 | A normal string return is sent as an ordinary (successful) text result. A |
| 40 | ToolError is instead turned into a tool result with ``isError: true`` so a |
| 41 | client that only checks ``isError`` can tell a genuine failure — e.g. the |
| 42 | ``gh`` CLI missing or a PR that cannot be resolved — from success. |
| 43 | """ |
| 44 | |
| 45 | |
| 46 | def _read_graph(graph_path: str) -> nx.Graph: |
no outgoing calls
no test coverage detected