Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/core / / ToolError
Interface: ToolError
Defined in: packages/core/src/types/tool.ts:262
The unsuccessful outcome of a tool invocation. The model sees a textual representation of message; the runtime sees the typed shape.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
cause? | readonly | unknown | Optional underlying cause (chained errors). | packages/core/src/types/tool.ts:268 |
hint? | readonly | string | Optional remediation hint for human readers. | packages/core/src/types/tool.ts:270 |
kind | readonly | ToolErrorKind | - | packages/core/src/types/tool.ts:265 |
message | readonly | string | - | packages/core/src/types/tool.ts:266 |
recoverable? | readonly | boolean | Whether retrying the SAME call can plausibly succeed (C3). Stamped from the error kind by the executor; the harness-side transparent retry consults it together with the tool's side-effect safety. | packages/core/src/types/tool.ts:276 |
recoveryHint? | readonly | RecoveryHint | Model-facing recovery guidance derived from the error kind (C3). | packages/core/src/types/tool.ts:278 |
toolCallId | readonly | string | - | packages/core/src/types/tool.ts:263 |
toolName | readonly | string | - | packages/core/src/types/tool.ts:264 |