Skip to content

Graphorin API reference v0.13.6


Graphorin API reference / @graphorin/core / / ToolCallIncompleteEvent

Interface: ToolCallIncompleteEvent

Defined in: packages/core/src/types/agent-event.ts:156

Stable

Emitted when the provider stream finished without delivering the final arguments for a started tool call - typically finishReason: 'length', the output-token ceiling cutting the call's argument JSON mid-stream. Terminal for this toolCallId: no tool.call.end or tool.execute.* events follow, the tool is never executed, and the run then fails with error code 'incomplete-tool-call' instead of completing. Subscribers tracking call lifecycles close their state off this event.

Properties

PropertyModifierTypeDescriptionDefined in
argsPrefixreadonlystringThe partial argument JSON accumulated before the stream ended.packages/core/src/types/agent-event.ts:163
finishReasonreadonlyFinishReasonWhy the stream ended; 'length' means the output-token ceiling.packages/core/src/types/agent-event.ts:161
toolCallIdreadonlystring-packages/core/src/types/agent-event.ts:158
toolNamereadonlystring-packages/core/src/types/agent-event.ts:159
typereadonly"tool.call.incomplete"-packages/core/src/types/agent-event.ts:157