Defined in: packages/ai/src/types.ts:1271
Emitted when a tool call completes.
@ag-ui/core provides: toolCallId TanStack AI adds: model?, toolCallName?, toolName? (deprecated), input?, output?, result?
Same Pick (not extends) rationale as ToolCallStartEvent.
TToolName extends string = string
Constrained tool name type. Defaults to string (untyped).
TInput = unknown
Constrained input arguments type. Defaults to unknown.
TOutput = unknown
Constrained output type from the tool's outputSchema. Defaults to unknown.
optional input?: TInput;Defined in: packages/ai/src/types.ts:1287
Final parsed input arguments (TanStack AI internal)
optional model?: string;Defined in: packages/ai/src/types.ts:1278
Model identifier for multi-model support
optional output?: TOutput;Defined in: packages/ai/src/types.ts:1294
Tool execution output, validated against the tool's outputSchema when one is declared. Prefer this over parsing result when present. Undefined for tools without execute, client tools pending approval, or when execution throws.
optional result?:
| string
| ContentPart<unknown, unknown, unknown, unknown, unknown>[];Defined in: packages/ai/src/types.ts:1296
Tool execution result (TanStack AI internal / wire form)
optional state?: ToolOutputState;Defined in: packages/ai/src/types.ts:1298
Tool execution output state (TanStack AI internal)
optional toolCallName?: TToolName;Defined in: packages/ai/src/types.ts:1280
Name of the tool that completed (AG-UI-compatible optional field)
optional toolName?: TToolName;Defined in: packages/ai/src/types.ts:1285
Use toolCallName instead. Kept for backward compatibility.
type: "TOOL_CALL_END";Defined in: packages/ai/src/types.ts:1276