Defined in: packages/typescript/ai/src/types.ts:1176
Emitted when a server tool requires approval before execution. The agent loop yields this and pauses — structured-output.complete will not fire for that run. The shape is fixed by the orchestrator's tool-approval flow (the agent-loop branch of runStreamingStructuredOutputImpl in activities/chat/index.ts forwards CUSTOM events from TextEngine.run()).
[k: string]: unknown[k: string]: unknownoptional model: string;optional model: string;Defined in: packages/typescript/ai/src/types.ts:1128
Model identifier for multi-model support
name: "approval-requested";name: "approval-requested";Defined in: packages/typescript/ai/src/types.ts:1177
CustomEvent.nameCustomEvent.namevalue: object;value: object;Defined in: packages/typescript/ai/src/types.ts:1178
approval: object;approval: object;id: string;id: string;needsApproval: true;needsApproval: true;input: unknown;input: unknown;toolCallId: string;toolCallId: string;toolName: string;toolName: string;CustomEvent.valueCustomEvent.value