Defined in: packages/ai/src/types.ts:1567
Emitted at the start of a streaming structured-output run, before the JSON deltas. Tells consumers that the upcoming TEXT_MESSAGE_CONTENT deltas belong to a structured response so they can route those bytes into a StructuredOutputPart instead of building a TextPart. Carries the messageId the deltas will be tagged with so the routing decision can be made per-message rather than globally.
optional metadata?: Record<string, any>;Defined in: packages/ai/src/types.ts:1531
Extra information attached to this event.
name: "structured-output.start";Defined in: packages/ai/src/types.ts:1568
What this custom event is. Required: without it a consumer cannot route the value.
CustomEvent.nametype: "CUSTOM";Defined in: packages/ai/src/types.ts:1530
value: object;Defined in: packages/ai/src/types.ts:1569
The payload. Any JSON value, and required.
messageId: string;CustomEvent.value