FrameworksOfficial

AI SDK 7.0.153 separates full-response history from structured-output parsing

Released October 24, AI SDK 7.0.153 parses only the last final_answer when a non-streaming OpenAI or Azure Responses result contains multiple JSON assistant messages, while preserving full text, annotations, message history and usage.

Why it matters

Generative interfaces often map model JSON into forms, cards or state objects. Concatenating commentary, drafts and a final answer turns individually valid JSON messages into invalid parser input, so a UI can fail even after the model produced a valid final state.

A closer look

The fix covers generateText with Output.object and generateObject, including the built-in JSON and reasoning middleware. Providers can supply structuredOutputText without changing the response content exposed to callers; the OpenAI Responses adapter selects the last phase: final_answer message when present. Tests preserve raw callback text, response metadata, annotations, messages and token usage, while retaining the previous concatenation fallback when no provider-selected parser input exists.

Who this is for

Frontend and agent-platform teams using AI SDK with OpenAI or Azure Responses to render structured model output as generative interfaces

Original sources

Revisions & corrections (1)

— Official 2026-10-24 patch fixes a verified failure mode in non-streaming JSON output used by generative interfaces; release notes and merged tests confirm scope, preserved response data and the unchanged streaming limitation.

Related events

Frameworks

assistant-ui's October 28 release tightens prompt review, tool-result ownership and configuration writes

assistant-ui released a coordinated package set on October 28. Generative Frame 0.0.9 fills the composer with widget and MCP App prompts for review before sending; assistant-stream 0.3.55 fixes stale model content surviving a later tool response and pending results moving when tool-call IDs are reused; the CLI also narrows configuration paths and plan-revision boundaries.

Frameworks

AI SDK 7.0.155 removes runtime checks already guaranteed by static types

Released October 27, AI SDK 7.0.155 stops revalidating message history against the ModelMessage schema in text and object generation and removes several shape checks covered by TypeScript, reducing a linear cost in long conversations and multi-step runs.