Defined in: packages/ai/src/types.ts:436
StructuredOutputPart — a typed structured response attached to the assistant message that produced it. Generic over the schema-inferred data type so consumers can thread useChat({ outputSchema })'s schema all the way down to messages[i].parts[j].data. Defaults to unknown so untyped consumers (e.g. internal codepaths that don't know about TSchema) keep working.
TData = unknown
optional data: TData;Defined in: packages/ai/src/types.ts:442
Validated final object — only set when status === 'complete'.
optional errorMessage: string;Defined in: packages/ai/src/types.ts:448
Populated when status === 'error'.
optional partial: DeepPartial<TData>;Defined in: packages/ai/src/types.ts:440
Progressive parse of raw via parsePartialJSON — populated while streaming and after complete.
raw: string;Defined in: packages/ai/src/types.ts:444
Accumulating JSON buffer. Source of truth for wire round-trip.
optional reasoning: string;Defined in: packages/ai/src/types.ts:446
Optional chain-of-thought surfaced by reasoning models alongside the structured output.
status: "error" | "complete" | "streaming";Defined in: packages/ai/src/types.ts:438
type: "structured-output";Defined in: packages/ai/src/types.ts:437