Defined in: packages/typescript/ai/src/types.ts:1149
Final event of a streaming structured-output run. Carries the validated object (typed as T after the orchestrator runs Standard Schema parsing), the raw JSON text that produced it, and — for thinking/reasoning models — the accumulated reasoning text. Adapters emit this with T = unknown; the chat orchestrator narrows to the schema's inferred type after validation.
reasoning is undefined when the model produced none (most non-thinking models) and when the underlying adapter doesn't expose reasoning streams.
name is a string literal so consumers can narrow directly:
if (chunk.type === 'CUSTOM' && chunk.name === 'structured-output.complete') {
chunk.value.object // typed as T
}if (chunk.type === 'CUSTOM' && chunk.name === 'structured-output.complete') {
chunk.value.object // typed as T
}T = unknown
[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: "structured-output.complete";name: "structured-output.complete";Defined in: packages/typescript/ai/src/types.ts:1152
CustomEvent.nameCustomEvent.namevalue: object;value: object;Defined in: packages/typescript/ai/src/types.ts:1153
object: T;object: T;raw: string;raw: string;optional reasoning: string;optional reasoning: string;CustomEvent.valueCustomEvent.value