Skip to content

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

PropertyModifierTypeDescriptionDefined in
cause?readonlyunknownOptional underlying cause (chained errors).packages/core/src/types/tool.ts:268
hint?readonlystringOptional remediation hint for human readers.packages/core/src/types/tool.ts:270
kindreadonlyToolErrorKind-packages/core/src/types/tool.ts:265
messagereadonlystring-packages/core/src/types/tool.ts:266
recoverable?readonlybooleanWhether 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?readonlyRecoveryHintModel-facing recovery guidance derived from the error kind (C3).packages/core/src/types/tool.ts:278
toolCallIdreadonlystring-packages/core/src/types/tool.ts:263
toolNamereadonlystring-packages/core/src/types/tool.ts:264