Open History to see the last commit
Defined in: packages/ai/src/types.ts:1468
Deprecated#
Native interrupts use RUN_FINISHED interrupt outcomes. This compatibility event remains readable until 1.0.
Extends#
Properties#
metadata?#
optional metadata?: Record<string, any>;
Defined in: packages/ai/src/types.ts:1416
Extra information attached to this event.
Inherited from#
name#
name: "approval-requested";
Defined in: packages/ai/src/types.ts:1469
What this custom event is. Required: without it a consumer cannot route the value.
Overrides#
CustomEvent.name
type#
type: "CUSTOM";
Defined in: packages/ai/src/types.ts:1415
Inherited from#
value#
value: object;
Defined in: packages/ai/src/types.ts:1470
The payload. Any JSON value, and required.
approval#
approval: object;
approval.id#
id: string;
approval.needsApproval#
needsApproval: true;
input#
input: unknown;
toolCallId#
toolCallId: string;
toolName#
toolName: string;
Overrides#
CustomEvent.value