npm / ai
ai
What changed in ai 4 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-04.
198 breaking19 security26 deprecations203 new APIs and options10 performance74 behavior and defaults1 tooling192 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initai 7471 changes
Breaking changes 92
Remote file URLs in experimental_extract and experimental_decide now require an explicit hook instead of silently downloading through global fetch; inline file data remains supported without one.
Output types are now inferred as the union of schema output types when a union of schemas is passed.
Stream parts now include a typed ping variant; exhaustive stream-part switches must handle it even when opt-in is disabled.
OpenAI sends timestamp_granularities only with verbose_json and warns when requested timing is unavailable or excluded.
This telemetry value can be undefined when a provider fetches an audio URL natively; check for a missing value before using it as a number.
This telemetry value can be undefined when a provider fetches an audio URL natively; check for a missing value before using it as a string.
Streamed data parts are now validated against dataPartSchemas; invalid parts raise a TypeValidationError.
Relative paths in every method resolve against the directory run and spawn start in.
The just-bash adapter rejects writes to a directory instead of replacing it with a file.
TypeScript-guaranteed input checks were removed from text and object generation APIs and several related settings; value constraints that types cannot express remain validated.
Adds interrupted to the public finish-reason types; interrupted streams preserve partial output without an error solely for interruption and stop tool execution, agent continuation, and automatic UI follow-ups.
Low-memory streaming moves to experimental_streamTextLowMemory(options); replace calls that pass experimental_lowMemory to streamText.
Public state forms are normalized into parts before providers are called, with text and JSON objects mapped to text and json parts.
Arrays passed directly as state are interpreted as decision state parts; JSON arrays must be wrapped.
TypeSafe AI rejects file inputs in decision state.
The evaluate API was renamed to decide.
Undetermined generated audio formats now throw InvalidResponseDataError instead of a generic Error.
Provider-executed tool errors bypass the UI stream onError callback, while stream errors and invalid tool calls still invoke it.
Together AI Gemini image inputs are marked unsupported by the current single-image request mapping.
Packages are compiled for an ES2022 runtime target, which may affect the runtime environment required by developers.
URL MIME types are matched exactly so unsupported subtypes are not forwarded to providers.
Histories whose reconstructed schema output differs are rejected, including signed approvals with missing original input.
addToolOutput now rejects continuous sessions.
sendTextMessage now rejects continuous sessions.
Utility input validation now uses InvalidArgumentError, changing the error developers may need to handle.
Unsupported batch request types are now rejected.
Embedding model responses containing no embeddings are now rejected.
Batch operations now support selecting models per request.
Tool execution no longer starts automatically when a model call ends with an unsafe finish reason.
OpenTelemetry functionality moved into a new package.
ToolLoopAgent now validates caller-supplied options at runtime and throws InvalidArgumentError on failure.
All packages are ESM-only; consumers using require() must switch to ESM import syntax.
Top-level result content and the listed tool, file, source, and warning properties now accumulate values across every step; use finalStep for final-step-only values.
Renames the tool callback option experimental_context to context and scopes tool callback data to fields declared by that tool's contextSchema.
Tool context is validated at runtime against contextSchema; invalid context throws TypeValidationError with validation metadata in error.context.
Declares tool-specific context fields and lets tool() infer the context type available to that tool's callbacks.
The deprecated option has been removed; use activeTools instead.
The experimental_customProvider export was removed.
The deprecated export was removed; use customProvider instead.
The deprecated result type export was removed; use GenerateImageResult instead.
The deprecated alias was removed; migrate to output.
The deprecated generateText result property was removed; read result.output instead.
Removed from generateText; use prepareStep instead.
Sandbox.executeCommand was renamed to Sandbox.runCommand.
Renamed from Experimental_Sandbox.
Removes the tracer property; pass a custom OpenTelemetry Tracer to the OpenTelemetry constructor instead.
File part data is now tagged with a type, and the image part type was removed.
Deprecated experimental generateImage exports were removed.
The stable image generation export replaces the removed experimental_generateImage export.
The includeRawChunks option moved to include.rawChunks.
Request bodies are no longer included in generateText and streamText step results by default; opt in with include.requestBody.
generateText no longer includes response bodies by default; opt in with include.responseBody.
Moved to include.rawChunks.
Renamed from stepCountIs.
The deprecated function has been removed; use isToolUIPart instead.
CallSettings was split into LanguageModelCallOptions and RequestOptions.
Renamed from ModelCallStreamPart as low-level stream primitives adopt language model call terminology.
Removes the deprecated top-level cachedInputTokens field; use inputTokenDetails.cacheReadTokens instead.
Removes the deprecated top-level reasoningTokens field; use outputTokenDetails.reasoningTokens instead.
The deprecated tool-result content part type has been removed; use the file variant for inline tool-result file content.
The minimum supported Node.js version is 22; supported versions are 22, 24, and 26.
streamText now calls onChunk for every TextStreamPart, including lifecycle, boundary, and terminal parts; handlers should guard the chunk types they process.
Renames the telemetry integration callback and tracing-channel event type from onEmbedFinish to onEmbedEnd.
Renamed from onFinish.
UI message stream helpers now use a generic error message by default; raw error details are emitted only when an onError handler is explicitly supplied.
Renamed from onObjectStepFinish.
Renames the telemetry integration callback and tracing-channel event type from onRerankFinish to onRerankEnd.
The generation start callback for generateText, streamText, and agents is now named onStart instead of experimental_onStart.
Renamed from onStepFinish.
The per-step start callback for generateText, streamText, and agents is now named onStepStart instead of experimental_onStepStart.
The export was removed.
Instructions returned from prepareStep now carry forward to future steps until another instructions or system override is returned.
Messages returned from prepareStep now become the base for subsequent steps, with previous response messages appended.
This field was removed from generateText and streamText responses; read cache token counts from the standard usage object instead.
When reasoning is set to a value other than 'none', reasoning summaries now default to 'detailed'. Set this field to null to keep them disabled.
MCPTransportConfig now defaults redirect to error rather than follow, rejecting HTTP redirects by default to help prevent SSRF attacks.
Register a telemetry integration globally at application startup to receive OpenTelemetry traces.
The codemod updates named imports and direct re-exports to the new API names while preserving local bindings and application export names as aliases; namespace member access remains unchanged.
Renamed from context.
Replaces shared top-level context for generation and agent runtime data, which is visible to orchestration but no longer supplied to tool callbacks.
Renamed to telemetry.includeRuntimeContext and made opt-in.
Each step's response.messages now contains only messages produced by that step; use result.responseMessages for the full response message history.
The streaming model-call primitive was renamed to use language model call terminology.
Rejects result promises with NoOutputGeneratedError when a model stream ends without output; streams with partial output still resolve with the partial result.
System messages in prompt or messages are rejected by default; opt in to allow them. The notes recommend using instructions instead.
Replaces Tool.sensitiveContext and is opt-in.
Telemetry integration naming changed from *TelemetryIntegration to *Telemetry.
The deprecated export was removed; use ToolExecutionOptions instead.
The deprecated media type part was removed.
Provides per-tool context values keyed by tool name; it becomes required when at least one tool declares contextSchema.
generateText and streamText result usage now totals tokens across all steps; use finalStep.usage for final-step-only usage.
xai(modelId) and xai.languageModel(modelId) now use the xAI Responses API by default; use xai.chat(modelId) to keep using Chat Completions.
Security 13
Downloads are kept separate from provider authentication wrappers so file hosts do not receive Azure bearer tokens or Vertex Express Mode API keys.
Accepts a fetch option so core downloads can use a configured transport, including guarded-fetch for opt-in DNS validation on Node.js.
Provider request URLs are sanitized before text generation results reach telemetry integrations and tracing subscribers, preventing endpoint credentials from being exposed.
Unavailable tools no longer expose persisted output to models.
Default stream reconnection URLs encode chat IDs, reject standalone dot IDs, and preserve custom URLs unchanged.
Tracing-channel context is now filtered according to telemetry allowlists.
URL-backed language model file outputs are securely downloaded and expose actual base64 and byte content, with valid data URLs in UI streams.
Prevents direct execution of tools governed by tool callers.
Default Node.js downloads retain DNS validation and connection pinning when global fetch is wrapped before or after SDK loading.
Prevents streamText from executing tool calls that violate tool choice.
When configured, approval replay validates HMAC signatures; replay also revalidates tool input and resolves approval policy before execution.
Client-replayed approvals are revalidated against tool schemas and approval policy before execution, with optional HMAC signature validation.
Hardens URL validation against hostname, IPv6, reserved-address, and redirect bypasses; unsafe redirect targets are checked before they are requested.
Deprecations 19
experimental_filterActiveTools remains available as a deprecated alias.
Experimental_LanguageModelStreamPart is deprecated in favor of the stable LanguageModelStreamPart.
Deprecation warnings now use stable codes and are deduplicated.
rawInput is deprecated in output-error UI message parts.
CallSettings is split into LanguageModelCallOptions and RequestOptions; replace usages with LanguageModelCallOptions & Omit<RequestOptions, 'timeout'>. The deprecated type remains available.
The Chat class exported from @ai-sdk/vue is deprecated in favor of the useChat composable.
The Google provider factory is now named createGoogle; createGoogleGenerativeAI remains available as a deprecated alias.
Tool-result image-* and file-* content variants are deprecated in favor of a canonical file variant with tagged data and mediaType.
Names in @ai-sdk/google containing GoogleGenerativeAI remain usable as deprecated aliases; migrate to the corresponding names using Google.
The Google provider class is now named GoogleProvider; GoogleGenerativeAIProvider remains available as a deprecated alias.
The user-message image content part is deprecated; use a file part with an image mediaType instead.
The tool-level approval property is deprecated; move approval policy to toolApproval on the call or agent so it can vary by request.
Renames the final lifecycle callback from onFinish to onEnd for generateText, streamText, agents, and ToolLoopAgent settings; onFinish remains a deprecated alias, and onEnd takes precedence.
Renames experimental_onToolCallFinish for generateText and streamText; the old name remains a deprecated fallback alias.
Renames experimental_onToolCallStart for generateText and streamText; the old name remains a deprecated fallback alias.
Top-level reasoning, reasoningText, request, response, and providerMetadata result properties are deprecated; use finalStep for final-step values.
The result fullStream property is deprecated in favor of stream.
The streamText result helper is deprecated; use the stateless top-level helper to compose transformations over any stream.
generateText and streamText result usage now reports totals across all steps; totalUsage is deprecated.
New APIs and options 132
Steering gains an interrupt option that can cancel a model call before it produces output.
The package now ships the AI SDK skill at this path for pnpm agent skills.
Adds extraction model support to provider registries, custom providers, and string model ids.
Parses output when retrieving batch results.
Supports output in startBatch; getBatchResults also parses it.
Set this environment variable to false to disable the warning logger.
generate() and stream() accept a timeout object with totalMs, stepMs, firstChunkMs, and chunkMs; invalid values are rejected, and timeouts end a model step even when the provider stream ignores the abort signal.
Accepts toolApproval in the constructor and per generate() or stream() call; it takes precedence over a tool's needsApproval setting and runs in workflow context outside durable model steps.
An experimental extract API and extraction model spec are added.
Adds experimental_queue to queue messages sent while a response is in progress.
An optional createTransport interface is available for provider-owned realtime transports.
This alias for the RealtimeModelV4 server-side spec type is re-exported.
Anthropic emits typed heartbeat parts only when includePings is true; it is disabled by default.
Providers can optionally transcribe audio URLs natively; Groq sends HTTP(S) URLs without downloading and re-uploading them, while a custom download function retains local download behavior.
A provider connection capability is available for provider-owned realtime transports.
Shared timestamp granularities are accepted for transcription; explicit provider timing settings take precedence.
Optional word timings are exposed separately from segments and shared timestampGranularities are accepted; explicit provider timing settings take precedence.
Video generation reports videos delivered directly to caller-managed storage through uploadedVideos without downloading or synthesizing video bytes.
Typed experimental durable context hooks are available for telemetry integrations.
Pass the same OpenTelemetryIdGenerator instance to the tracer provider's idGenerator and sampler and to new OpenTelemetry({ durable }) to carry trace context and sampling across steps.
Durable runs support a single telemetry operation that reports workflow events on completion or suspension, preserving original timestamps.
Adds steering.queue() to send a message once the current task is done.
Adds deleteFile to Experimental_SandboxSession.
Adds listDirectory to Experimental_SandboxSession.
Adds stat to Experimental_SandboxSession.
Adds an onAbort callback to ToolLoopAgent.
Adds an onError callback to ToolLoopAgent.
Adds an onStepError callback to generateText, streamText, ToolLoopAgent, and telemetry integrations.
Adds experimental steering to generateText, streamText, and ToolLoopAgent.
Adds a mock streaming speech model to ai/test.
Adds an exported type for speech stream parts.
Adds an exported type for speech stream usage.
Adds an exported type for speech text parts.
Streams speech audio from text or text parts using compatible speech models; returns audio and metadata promises, with non-fatal provider errors reported through onError and aborts or cancellation rejecting result promises immediately.
Adds an exported type for the streamSpeech result.
Adds an optional cause to NoSpeechGeneratedError.
Experimental decision calls accept maxOutputTokens and forward it to language-model-backed decisions; native decision providers warn when the setting is unsupported.
Experimental decision calls accept reasoning and forward it to language-model-backed decisions; adapters keep reasoning disabled when omitted, and native providers warn when unsupported.
Moves low-memory streaming to a dedicated function, supporting reusable options and ReturnType.
Adds support for the Perplexity decisions API.
Adds the box decision question type with image bounds for TypeSafe AI.
Adds experimental_lowMemory: true for single-consumer streaming without a replay buffer or retained final-content results, reducing memory retention.
Adds configurable concurrency for tool call execution.
Adds an optional shared citation representation across generated text, stream events, result content, and UI message text parts.
Embedding functions accept a new top-level dimensions setting.
Adds persistent WebSocket chat transport with correlated streaming, backpressure, cancellation, protocol validation, lifecycle handling, and sequence-based resume support.
Experimental decision state now supports ordered text, file, and JSON parts.
OpenAI Decisions and language model adapters now support image input.
Introduces a callback for persisting messages when a UI message step ends.
Adds portable max reasoning with native provider mappings, compatibility coercions, and budget-based fallback support.
ReasoningLevel now includes max, so exhaustive switches and Record mappings must handle the new value.
extractReasoningMiddleware supports custom reasoning delimiters.
WorkflowAgent gains durable non-streaming generation with a shared tool loop, typed output, and a 20-step default.
Tool search can select and rank eligible deferred tools through a search callback.
Tool search supports configuring the maximum number of returned tools.
Experimental streaming lifecycle callbacks were added for speech generation and transcription.
File-input support is advertised for QuiverAI Arrow 2 and Arrow 2 Telos.
Single-image editing capability is included for Together AI FLUX.2 Pro and Flex.
Gemini TTS supports explicit A-law output.
Gemini 3.8 TTS support adds structured speech metadata and per-turn speaker and style controls for prebuilt voices.
Gemini TTS supports explicit mu-law output.
Gemini TTS supports explicit raw PCM output.
customProvider now accepts evaluationModels for experimental evaluation model aliasing and registry resolution.
Registries now expose evaluationModel for evaluation-capable model resolution.
Adds a native tool search tool for applications that need tool discovery.
Adds experimental evaluation of Choice, Score, and Boolean questions against shared state with typed answers and validation.
Adds an error for unsupported evaluation question types.
Applications exchange WebRTC SDP through an application endpoint using api.session.
Experimental client-delegated Live conversations can use browser-direct WebRTC alongside the existing WebSocket path.
The unified factory adds experimental OpenAI Live provider support for server WebSocket sessions with client delegation.
An OpenAI-specific api override is available for early-access models.
Typed AI SDK errors are exposed for UI transport and completion failures.
Image generation requests are now supported in batches.
A type guard for tool output errors was added alongside a stable UI message type.
A stable UI message type and a type guard for tool output errors were added.
Batch cancellation and listing APIs were added for managing batches.
Adds an API for canceling batches.
Adds an API for listing batches.
Array outputs now support maxItems constraints.
Array outputs now support minItems constraints.
onLanguageModelCallStart is formally included in the ToolLoopAgentSettings type.
Adds configurable recovery for provider errors after response streaming begins, with isolated retry attempts and successful-attempt-only results and metadata.
Adds a bounded callback-directed recovery path for streamed provider errors when streamRetries is configured to 0.
Upload results now expose the uploaded file size.
Provider-utils adds a handler for binary stream responses.
Upload results now expose the file creation timestamp.
FilesV4 now supports optionally deleting files.
FilesV4 now supports optional streaming file downloads.
Upload results now expose the file expiration timestamp.
FilesV4 operations can receive an abort signal for cancellation.
FilesV4 operations can receive custom request headers.
FilesV4 now supports optionally retrieving file metadata.
Provider-utils adds streaming multipart uploads with deterministic part ordering and failure-path stream teardown.
Uploads can use a stream data variant for streaming uploads.
Batch operations now support tool calling.
WorkflowAgent now supports signed tool approvals.
Anthropic batch requests now support the full language-model option surface.
Individual image generation calls are now exposed for direct use.
UI message stream end callbacks now provide operation-level outcomes.
UI messages retain the optional approval request reason separately from an approver's response reason.
Manual tool approval statuses can include a reason that is preserved across core, model, and UI approval requests.
The gateway provider registers batch completion webhooks through the batch callbackUrl contract.
Batch completion webhooks can be configured with a webhook URL.
ToolLoopAgent exposes the option to allow or reject system messages in prompt or messages, including dynamic per-call configuration from prepareCall.
This opt-in preserves acceptance of system messages in existing histories, but should only be used for trusted messages because user-edited messages could override or set the system prompt.
Provider content supports a new custom content type.
The stream part type is now exposed.
Adds a realtime model specification with normalized event types and a factory, alongside provider implementations and client support.
Tool call repair options use instructions instead of system for the current system instructions.
Adds readFile and writeFile methods with convenience wrappers to the sandbox abstraction.
Adds detached command execution to the sandbox abstraction.
Exposed on text generation results.
Adds a first-class call option for video.
Opt in to storing step request messages.
Introduced as the primary prompt option, with system deprecated.
Adds a stop-condition helper for unlimited steps.
This command adds the migration skill to guide an agent through migrating from AI SDK v6 to v7.
Adds an abort hook to close telemetry spans.
The callback receives the current instructions state and the top-level initialInstructions value.
Provider references support uploading files and provider skills.
A top-level reasoning parameter is supported by the provider specification, generateText, and streamText.
Models can return files in a distinct reasoning-file part; update exhaustive part handling to support it.
Accepts plain string model IDs as well as RerankingModel objects.
Added to GenerateTextResult and StreamTextResult.
The timeout configuration now supports toolMs.
Supports per-tool timeout overrides through toolTimeouts.
Controls the order in which tools are sent to provider APIs.
Separated toolsContext from context.
Extracts text deltas from a streamText stream as a standalone helper.
Standalone helper converts a compatible text stream into UI message chunks without using a streamText result object.
Standalone helper converts a compatible text stream into a UI message stream without using a streamText result object.
The Vue composable exposes reactive messages, status, and error, and can recreate the underlying chat when its init object changes.
Performance 4
Validates provider and tool metadata and citation JSON values in a single pass without copying them, except to remove __proto__ keys, reducing memory and CPU use for deeply nested values.
Reduces excessive CPU usage when streaming long arrays by parsing and validating completed elements incrementally.
Completed elements are parsed and validated incrementally, reducing excessive CPU usage when streaming long arrays.
Default chat IDs are generated on first access, allowing useChat() to prerender without reading a random value when the ID is unused during rendering.
Behavior and default changes 52
WorkflowAgent now carries returned instructions or deprecated system values forward to later steps, merges providerOptions with agent options, and merges headers over call headers.
generate() and stream() log warnings from every model call through the AI SDK warning logger; AI_SDK_LOG_WARNINGS controls the output.
The createDownload function can be used as experimental_download with generateText and streamText, and the hook now also handles generated file URLs returned by the model.
Warns when a tool error sent in the UI stream differs from the text the model received and later reasoning is sent; the request still fails.
Validation checks only the schemas for a part’s type, stops at the first invalid message or part, and reports invalid JSON metadata as a single issue, preventing excessive memory and CPU usage.
Transcription word timings are no longer included in telemetry when recordOutputs is false.
OpenAI Chat, Azure Chat, and Bedrock Mantle Chat can report their actual HTTP endpoint through optional request metadata and model-call end events; results, callbacks, and OpenTelemetry spans expose only sanitized endpoint details.
Output types are now inferred as the union of schema output types when a union of schemas is passed.
Steering messages are streamed to the UI and retained in converted messages.
filterActiveTools is now exported as a stable API.
LanguageModelStreamPart is now stable.
Adds aiVersion to telemetry events so tracing-channel subscribers and telemetry integrations can identify the emitting ai package version, including in bundled applications and applications with multiple SDK versions.
Streamed custom-tool input is marked as text so UI clients can display it progressively without JSON parsing.
A warning is logged when the default step limit stops a tool loop.
Model-call spans now record normalized state parts, while outer spans retain public state inputs.
Decision file bytes are serialized as base64 in OpenTelemetry state attributes.
Shared state is labeled in language-model decision prompts.
Decision refusals are reported as refusal answers.
Portable minimal, xhigh, and max retain or receive provider mappings and now return compatibility warnings.
Speech generation and transcription now include telemetry and provider usage propagation.
Provider capability declarations advertise file and mask input support using confirmed model IDs.
Newer and custom model IDs default to structured speech, while legacy formats remain for older models.
UI message stream end callbacks now report consumer cancellation.
Adds telemetry support to experimental_evaluate.
Accepts string model IDs when an evaluation-capable default provider is explicitly configured; evaluation does not implicitly fall back to Gateway.
Tool search now supports direct tool calling.
Code-mode can discover and update tools during a conversation.
Live continuous sessions enforce 128 KiB frame and combined buffered-send budgets using actual encoded wire bytes.
Known Live model IDs route to Live, while unknown IDs retain legacy Realtime defaults.
maxPlaybackBufferSeconds is supported only for continuous PCM sessions.
Runtime context attribution was added to embed, embedMany, and rerank operations.
Google and Google Vertex prompt blocks are now treated as terminal.
Retryability classification is provider-independent and preserved through the AI Gateway.
The core uploadFile helper now forwards abortSignal and headers options.
Parsed structured output is now exposed in streamText end callbacks.
Chats can continue automatically after tool approval denials reach the output-denied state.
OPA requires-approval decisions now surface their reason to human approvers.
Preliminary tool outputs are filtered when ignoreIncompleteToolCalls is enabled.
Chat status remains submitted until response content begins streaming.
Telemetry is now stable rather than experimental.
Telemetry settings no longer include telemetry data in user-facing event data.
The file variant's mediaType accepts a full IANA type or a top-level segment; subtype is auto-detected from inline bytes where possible.
Promoted to stable exports.
Renames experimental_include to include for generateText, streamText, and ToolLoopAgent; the old name remains a deprecated alias.
The callback follows the result changes: usage and listed content properties include all steps, while final-step-only properties are available on finalStep.
When top-level reasoning and provider-specific reasoning settings overlap, providerOptions takes precedence and can bypass the top-level configuration.
The speech result type has a stable name; Experimental_SpeechResult remains a deprecated alias.
Telemetry is enabled by default.
Once a telemetry integration is registered, AI SDK calls emit telemetry events by default; set isEnabled: false to opt out for a call.
Renames experimental_telemetry to telemetry; the old name remains a deprecated alias during the migration window.
Promoted to stable exports; experimental aliases remain for backwards compatibility and are deprecated.
The transcription result type has a stable name; Experimental_TranscriptionResult remains a deprecated alias.
Tooling 1
Run the v7 codemods from the project root to automate many v6-to-v7 code transformations.
Fixes and other changes 158
Fixes locked stream errors when telemetry subscribers or integrations replace a model stream whose request or response metadata requires credential redaction.
When no tools are provided, experimental_transform factories receive an empty tool set instead of tools: undefined, matching the StreamTextTransform type.
In-place schema validation or input refinement no longer changes approved tool arguments during approval replay.
Logs the default step limit warning when generate() stops at the default limit.
Custom download requests receive the call’s abort signal, preserving cancellation and timeouts for prompt assets and generated files.
Pending send-now operations are canceled when a later stop or dispose occurs, preventing an abandoned chat's queued messages and history from being sent through a replacement transport.
The queue keeps request options when sending a tool approval first and waits while an async sendAutomaticallyWhen decision is pending.
Calls onError once per invalid tool call.
Downloaded audio types are detected from bytes when servers return generic or non-audio content types.
Deprecated file-url tool result content is now downloaded and normalized like file parts when the model does not support the URL.
Empty signature text from foreign providers is omitted when replaying history through Anthropic or Bedrock, while Bedrock retains native reasoning-history handling.
Streamed Google responses preserve text and complete function-call order, standalone thought signatures, and provider metadata on empty text parts.
Groq strips media fragments from URLs and falls back to secure local download and file upload when it rejects a redirect.
Deprecated image-url tool result content is now downloaded and normalized like file parts when the model does not support the URL.
Telemetry events delivered to integrations and ai:telemetry now respect recordInputs and recordOutputs, filtering nested content and omitting raw span results when content recording is disabled.
Access video only when videos is nonempty; directly uploaded videos are reported through uploadedVideos instead.
Validation now restores server-defined tool metadata, dynamic status, and title so approval policies receive the same tool definition fields as new model calls.
cloneModelMessages now supports cross-realm binary buffers and circular structures.
data-content and file-part-data now handle cross-realm Uint8Array and ArrayBuffer values.
DefaultGeneratedFile now supports cross-realm Uint8Array and ArrayBuffer values.
Clarifies the inverted prefix error message.
Repairs partial JSON that ends with a minus sign at the start of an array.
The just-bash and Vercel Sandbox adapters resolve a relative workingDirectory for run and spawn against the sandbox's working directory.
Node.js runtime detection used by telemetry tracing no longer causes Next.js Edge Runtime warnings.
Fixes non-streaming Responses API structured output when multiple assistant messages contain JSON; OpenAI and Azure Responses models can select the last final_answer while preserving generated content, annotations, conversation history, and token usage.
Only the first approval response per tool call is processed, preventing repeated or conflicting responses from executing a tool twice or both executing and denying it.
Forwards toolChoice: 'none' to the Hugging Face Responses API and rejects tool calls before local execution in generateText, streamText, and WorkflowAgent.
Repaired tool names are now preserved in streamed UI message parts.
Optional tools no longer add an incorrect undefined member to tool call, result, error, denied output, and execution event types.
Pruning tool calls now removes orphaned reasoning, including consecutive summary and reasoning-file parts.
Raw OpenAI custom-tool input deltas are restored for consumers forwarding them to Responses API clients.
The text encoding is preserved when partial UI messages are saved and resumed.
Workflow now passes runtime context when telemetry.includeRuntimeContext allows it.
Rejects approved tool calls without results before sending later context to providers.
Fixes validation of rounded choice probabilities.
Prevents duplicate message parts when replayed streams are resumed.
Reports incomplete model streams with no output as errors.
Updates streaming chat messages by stable ID.
Updates tool outputs in the message containing the matching tool call.
Prevents a second resume request on mount when a chat is already submitted or streaming.
Discards unrelated message state when reading resumed streams.
chunkMs and firstChunkMs stop when model responses end, retries receive fresh timeout budgets, and stepMs still covers local tools.
Stopping now waits for chat stream cleanup to complete.
Repeated tool approval responses no longer trigger duplicate continuation requests.
Provider-executed tool calls are preserved when streams are resumed.
Async sendAutomaticallyWhen failures from tool updates are now propagated.
Gateway keeps its existing string and JSON request format and rejects file inputs.
Pending result promises are rejected and pending streams are canceled when the abort signal fires.
Nova 2 portable xhigh now sends maxReasoningEffort high instead of max and returns a compatibility warning.
Chat reconnect URLs no longer contain duplicate slashes.
Provider options are now preserved from approval-only tool messages.
V2 provider-reported total tokens are now preserved in raw usage.
The latest error is now published after repeated failed stream resume attempts.
WebKit network errors are now recognized.
Silent audio now returns successful empty transcripts.
Tool approval state is preserved when resuming streams.
Tool approval inputs created in another JavaScript realm are accepted when unchanged.
Merged UI message streams are canceled when the consumer disconnects.
Tool approvals are cleared when addToolOutput runs.
Partial reasoning tags are preserved when streamed text parts end.
Pending tool approvals superseded by user messages are ignored.
All tool content is pruned when retaining zero trailing messages.
Idle UI message streams remain open through optional SSE heartbeats.
Active UI message parts now continue when resuming after a disconnect.
Tool metadata is now preserved from tool output chunks.
Response streams are canceled when clients disconnect.
Static tool input errors are stored in the current input field.
Unhandled stream completion rejections are prevented in non-Node runtimes.
Original opaque URI strings are preserved in tagged file URLs during prompt conversion.
Google embedMany calls with more than 100 values now preserve multimodal alignment across automatic batches.
Content length is validated before Google embedding requests are sent.
Each automatic batch validates provider options after middleware transforms them.
Headerless audio formats are identified correctly.
Direct transport stream callbacks now preserve message history.
Empty speech transcripts are rejected before requests are sent.
Completed streamed tool input callbacks are routed to repaired tools.
Tool approvals can resume from earlier messages.
Manually approved tool inputs produced by schema transforms are executed while preserving approved inputs during revalidation.
Transformed UI tool inputs are validated against reconstructed output before returning them as static tool parts.
Video models are preserved when using legacy fallback providers.
Native WAV responses are preserved without adding a second header.
Opaque file URI strings are preserved during provider serialization.
UI message validation now preserves parsed metadata and data values.
Reasoning file parts are now pruned when reasoning is removed.
Cancellation is propagated to batch file downloads.
Reasoning extraction streams now preserve overlapping text blocks.
Replacement completion requests remain loading and cancellable when an earlier request settles.
Validated toolsContext is forwarded to host-executed tools in alignment with ToolLoopAgent.
Stops pending tool-call repairs when generation is cancelled.
Preserves file data when adapting v3 language models.
Base64 text data URLs are decoded using their declared charset.
Query parameters are preserved in chat reconnect URLs.
Chat transport requests no longer include duplicate content types.
Input callbacks receive tool-specific context.
Preliminary tool outputs no longer complete chats prematurely.
Raw speech audio format metadata is preserved.
Node stream responses preserve multiple Set-Cookie headers.
Polling timeouts are enforced for in-flight video status requests.
WorkflowAgent supports deferred tool discovery.
Provider file and skill upload APIs are preserved when using wrapProvider.
Input available callbacks are skipped for invalid streamed tool calls.
Null and empty-string JSON partial outputs are now streamed.
onEnd is no longer called after aborting a multi-step text stream.
Streamed step results now report the model selected by prepareStep.
Prompt attachment downloads are canceled when model calls are aborted or time out.
Provider metadata is preserved when simulating text streams.
Serialized tool outputs now preserve properties named after object prototypes.
Streamed JSON fences are stripped before arbitrary trailing whitespace.
Streamed response metadata fallbacks now use the model selected by prepareStep.
Structured output is streamed from the final tool-loop step.
Telemetry spans are closed when provider response streams fail.
Tool calls required by retained pending approvals are preserved.
Unhandled rejections are prevented when reading a UI message stream stops early.
Evaluation model IDs are resolved through AI Gateway when no default provider is configured, including string aliases in custom providers.
Abnormal realtime WebSocket close diagnostics are now reported through onError.
Oversized manual operations remain recoverable, while startup and automatic audio failures close the session.
Abnormal realtime WebSocket close codes and reasons are reported through the session error path.
Automatically denied tool calls in UI streams now settle instead of remaining unresolved.
Tool output JSON values are now serialized.
Invalid reranking provider indices are now rejected.
validateUIMessages now accepts inferred tools.
Receiver rejections are observed before generation starts, preventing unhandled rejections while preserving start error precedence.
Calls atob without a receiver for Cloudflare Workers compatibility.
Unclassified empty image results are retried.
Retry-attempt accounting is preserved during result retries.
Abort signals are supported when the global AbortSignal is not a constructor.
Embedding responses are rejected when their count does not match the input values.
Image call diagnostics are preserved when no image is generated.
Provider metadata is preserved when failed tool calls are converted.
Replacing a message in sendMessage now uses a new message ID.
Text data URLs are now decoded in Node.js.
onLanguageModelCallEnd is formally included in the ToolLoopAgentSettings type.
Tool part titles are preserved when UI messages are validated.
Fallback errors are surfaced when HTTP responses have empty bodies.
Skips smoothStream delays while the document is hidden.
Provider metadata stays on corresponding smoothStream chunks without carrying into later metadata-free deltas.
onAbort callbacks now expose the call ID and abort reason.
generateText no longer accepts responses that violate required tool choices.
Approval descriptors are preserved in UI message streams.
Canonical hashes now preserve the positions of undefined elements in arrays.
Gateway now sums image-generation costs across split requests.
Anthropic provider metadata now preserves native message batch request counts.
Tool approval secrets are now allowed in prepareCall.
smoothStream now handles stateful and empty-match regular expressions.
Tool approval secrets are now allowed in ToolLoopAgent settings.
Stream cancellation is handled when it occurs before an inner stream is registered.
Persisted typed tool calls are validated against current schemas, with incompatible history loaded as dynamic tool parts.
Structured output is parsed when providers return text without a finishReason.
Active text and reasoning parts are preserved when another merged UI message stream finishes a step.
Continues approved generateText, streamText, and WorkflowAgent turns with a model-visible tool error when revalidated tool input is invalid.
Allows nullish metadata schemas for UI messages with branded IDs.
Prevents duplicate IDs for text and reasoning parts.
Exceptions in streaming onChunk and onError callbacks no longer terminate the stream or mask provider errors.
Multi-step text generation now stops for client tool approval when a provider-executed tool has a deferred result.
Result promises are rejected and failed completion is reported when the provider stream errors.
Partial UI message parts are cleared when a WorkflowAgent model-call step is retried.
Declaration emit now works for exported values that infer an Output type.
Streaming chunks are emitted through the callback, which now receives all stream text parts.
ai 6139 changes
Breaking changes 39
Failed tool call error text now matches the model's message history by default; set redactToolErrors to true to replace it with the result of onError.
Automatic chat resumption no longer occurs when completed tool output is followed by terminal text without completed stream state.
Inherited names no longer resolve as registered providers.
Rejects responses that do not satisfy a required or specifically selected tool choice.
Adds support for error results; chat.addToolResult() is renamed to chat.addToolOutput().
The Agent configuration property system is renamed to instructions.
MCP client functionality moves into the @ai-sdk/mcp package, which adds OAuth support.
Calling azure() now uses the Responses API by default; use azure.chat() for Chat Completions API behavior.
Replaces chat.addToolResult() as the method for adding tool output.
The function has been removed; replace it with convertToModelMessages.
The function is now async to support async Tool.toModelOutput(); callers need to await it.
The deprecated CoreMessage type has been removed; use ModelMessage instead.
Agent UI stream functions rename the messages property to uiMessages.
Renames createAgentStreamResponse to createAgentUIStreamResponse and supports UIMessageStreamOptions.
Generics have been removed from EmbeddingModel, embed, and embedMany.
Renames the EmbeddingModelCallOptions type.
Adds EmbeddingModelV3 and changes the provider method from textEmbeddingModel to embeddingModel.
MCP client imports move from ai to @ai-sdk/mcp; MCP clients also gain OAuth support.
The static-tool-name helper is renamed to getStaticToolName; getToolName now handles static or dynamic tool parts.
The ToolLoopAgent system parameter is renamed to instructions.
The static-tool-part helper is renamed to isStaticToolUIPart; isToolUIPart now checks static or dynamic tool parts.
The V2 mock class has been removed from ai/test; use MockLanguageModelV3.
Provider options move to the main Agent configuration.
Azure Responses API metadata now uses the azure key instead of openai.
Google Vertex metadata output now uses the vertex key instead of google.
Renames relevanceScore to score.
OpenAI JSON outputs and tool calls now use strict schema mode by default; disable it if schema rejection errors occur.
The option has been removed from OpenAI chat models; use strictJsonSchema instead.
Provider method renamed to embeddingModel.
Changes the argument toModelOutput receives to a parameter object.
Function tool definitions no longer accept name; the tool name comes from its key in the tools object.
Strict mode is now configurable on each tool, allowing fine-grained control based on its input schema.
The parameter is now an object with an output property rather than the output value itself.
Renames ToolCallOptions to ToolExecutionOptions.
ToolLoopAgent replaces BasicAgent and gains support for experimental_download.
The default stopWhen changes from isStepCount(1) to isStepCount(20).
Replaces Experimental_Agent as the agent class.
The unknown finish reason is removed and is now returned as other.
A single Warning type exported from ai replaces separate warning types for generation functions.
Security 4
Telemetry recorded by generateText and streamText now redacts OpenAI MCP authorization and header values, plus Code Interpreter and shell domain-secret values, while preserving original application and provider arguments.
Provider metadata is hidden from telemetry when recordOutputs is false.
For toolChoice: 'none', the value is forwarded to the Hugging Face Responses API and tool calls are rejected before local execution; streamed tool parts are withheld and experimental_repairToolCall is not invoked for rejected calls.
Unavailable tools, including names matching Object.prototype properties, no longer expose persisted output to models.
Deprecations 7
generateObject is deprecated.
Renamed to getToolName; the old name remains available but is deprecated.
Renamed to isToolUIPart; the old name remains available but is deprecated.
Deprecated in favor of inputTokenDetails.cacheReadTokens.
Deprecated in favor of outputTokenDetails.reasoningTokens.
streamObject is deprecated.
The SDK prints a warning when V2 models are used with AISDK v6.
New APIs and options 46
Streamed input is marked as text so UI clients can display it progressively without JSON parsing.
Exposes normalized response content for opt-in recovery from tool choice violations.
Allows tool approval secrets in ToolLoopAgent settings and prepareCall.
Agent generate and stream accept an abortSignal parameter.
Agent gains an onFinish callback.
Adds a version property to Agent.
Exports AgentCallParameters and AgentStreamParameters types.
Exports AgentStreamParameters for typing agent stream parameters.
The AI Gateway adds support for image models.
Adds a type-safe callback for converting custom data parts to text or file parts models can process.
Adds createAgentUIStream and pipeAgentUIStreamToResponse.
OpenAI provider-defined tools can use custom names.
Adds experimental_context to prepareStep and allows it to be modified there.
Adds experimental reranking support.
Agents support experimental stream transforms.
Adds extended token usage information.
Exposes usage tokens for generateImage.
Adds image editing capabilities.
Adds the v3 image model specification.
Adds the LanguageModelV3 specification for language model providers.
Adds an onFinish callback to generateText and passes context into text-generation finish callbacks.
Adds Output.array() as an output mode.
Adds Output.choice() as an output mode.
Adds Output.json() for structured output.
Exports parseJsonEventStream from the ai package.
Adds a helper to pipe an agent UI stream to a response.
Adds support for provider-executed dynamic tools.
Azure Responses API options now use the azure key; the openai key remains supported for input.
Google Vertex options now use the vertex key; the google key remains supported for input.
Adds a helper for pruning messages.
Exposes the raw finish reason.
Validates UI messages without throwing and returns a success or failure result.
Adds the v3 speech model specification.
Adds standard JSON Schema support.
Adds stable structured output support and exposes output on StreamTextResult.
Anthropic adds an option to select outputFormat, jsonTool, or auto mode for structured outputs; auto uses native output format when supported.
system and instructions properties accept SystemModelMessage arrays.
Adds tool execution approval, including support for dynamic tools.
Adds tool input examples and middleware for them.
Adds strict mode configured per tool.
The state union adds approval-requested, approval-responded, and output-denied; exhaustive handling should cover them.
Tool.needsApproval can now be a function.
The system parameter now accepts SystemModelMessage in addition to string.
Exports uiMessageChunkSchema from ai and updates it to satisfy the UIMessageChunk type.
The useChat onFinish callback receives finishReason.
Introduces a helper for customizing embedding models, similar to wrapLanguageModel.
Performance 3
Validates JSON values in provider and tool metadata in a single pass without copying them, except to remove __proto__ keys, reducing memory and CPU usage for deeply nested metadata.
Validation checks each part against schemas for its type, stops at the first invalid message or part, and reports invalid JSON in provider or tool metadata as a single issue, reducing excessive memory and CPU usage.
Avoids repeatedly cloning accumulated text while preserving independent snapshots for mutable nested values.
Behavior and default changes 13
Google and Google Vertex content-filtered results are treated as terminal and are not retried.
Tool result handling supports error results.
Agent moves to stable.
Agent now defaults stopWhen to stepCountIs(20).
Context is passed to streamText and generateText onFinish callbacks.
Tool output and result content support is more flexible for richer interactions and complex tool execution patterns.
Adds stable structured output support and a schema name and description for output.
Output.text() becomes the default output mode.
Model warnings are also printed by embed and embedMany.
Warnings include provider and model id, and are unified across provider and ai packages.
Structured output is stable on generateText, streamText, and ToolLoopAgent.
Tool.toModelOutput may be asynchronous and receives a toolCallId argument.
Adds stable structured output support.
Fixes and other changes 27
Preserves toolChoice: 'none' when SDK tools are omitted or empty, allowing providers to disable native tools configured through provider options. For Perplexity native tools, use @ai-sdk/perplexity 3.1.10 or later.
Prompt data validation and conversion now handle cross-realm Uint8Array and ArrayBuffer values.
Orphaned reasoning, including consecutive reasoning parts, is removed when pruning tool calls.
Buffered stream parts are no longer emitted after a streamText transform calls stopStream.
Final provider tool-call inputs remain JSON-encoded after streamed input uses text encoding.
Prevents global type conflicts when multiple SDK versions are used.
Hydrated partial static tool input is preserved across stream resumptions.
Custom URLs returned by prepareReconnectToStreamRequest remain unchanged.
Prototype-named tools are preserved as own properties without changing lookup object prototypes.
Agent UI streams can use original messages as input.
Preserves media types on tool result file URLs and matches full MIME types exactly when checking native URL support.
Google embedMany now keeps per-value multimodal content aligned across automatic batches and validates content and provider options.
Streamed tool input callbacks now await start and delta callbacks before onInputAvailable on newer Node.js versions.
Retry-attempt accounting is preserved during image-result retries.
Approved turns continue with a model-visible tool error when revalidated tool input is invalid.
Aborted, errored, or cancelled calls no longer retain per-call state through abort cleanup listeners.
Exceptions in streaming onChunk callbacks no longer terminate the stream or mask provider errors.
Exceptions in streaming onError callbacks no longer terminate the stream or mask provider errors.
A missing gateway API key produces a user-friendly error in non-production environments.
HttpChatTransport no longer drops custom headers, and header normalization preserves them.
Parses experimental_output only when finishReason is stop.
Updates the OpenAI specification for MCP approval.
The specification terminology changes from provider-defined tool to provider tool.
Preserves providerExecuted when tool input validation fails.
Preserves providerMetadata when tool input validation fails.
ProviderV3 adds specificationVersion and introduces the shared provider specification.
Adds support for v2 specifications and restores version support for V2 providers.
ai 580 changes
Breaking changes 35
Adds ToolChoiceViolationError for tool calls rejected before local execution when toolChoice is 'none'.
Prototype-named tools and providers are preserved as own properties, while inherited names no longer resolve as registered providers.
createTestServer and TestResponseController are no longer re-exported here; import them from @ai-sdk/test-server/with-vitest instead.
The default provider global was renamed to AI_SDK_DEFAULT_PROVIDER.
React Server Components functionality moved to a separate package.
UI messages are no longer automatically converted to model messages.
The data and allowEmptySubmit options were removed from ChatRequestOptions.
Replaces maxSteps as the stopping condition for generateText and streamText.
The options argument was removed along with the deprecated throwErrorForEmptyVectors option.
The data UIMessage role and UI message data property were removed.
The null option was removed.
The deprecated experimental_providerMetadata API was removed.
The deprecated experimental_wrapLanguageModel API was removed.
The getUIText helper was removed.
Tools use input and output in place of args and result.
Image model settings were removed; maxImagesPerCall is now passed directly to generateImage, and other image settings go in providerOptions.
maxTokens was renamed to maxOutputTokens.
CoreMessage was renamed to ModelMessage.
DataStreamOptions.getErrorMessage was renamed to onError.
The onResponse callback was removed.
Image settings other than maxImagesPerCall are now passed through providerOptions.
The reasoningDetails field was renamed to reasoning in streamText and generateText.
Reasoning is sent to the client by default.
experimental_resume was renamed to resumeStream.
The source UI message part is now named source-url.
The SDK no longer supplies a default for stopSequences, allowing middleware changes to take effect.
continueUntil was renamed to stopWhen, and the maxSteps stop condition was renamed to stepCountIs.
The onCompletion callback was removed from StreamCallbacks.
The mergeIntoDataStream method was removed.
The SDK no longer sets temperature to 0 or supplies a default temperature, allowing middleware changes to take effect.
Replaces Message as the UI message type.
UIMessageStreamPart was renamed to UIMessageChunk.
The useAssistant hook was removed.
Attachments in useChat were replaced with file UI parts.
The keepLastMessageOnError option was removed from useChat.
Security 2
For Perplexity native tools, use version 2.1.6 or a later compatible version to get the provider-side guard.
Deleted tools named after Object.prototype properties no longer expose persisted output to models.
New APIs and options 25
Exported isDynamicToolUIPart from the ai package, making it available for application code.
Adds an experimental Agent abstraction.
Adds Chat.clearError().
Supports replacing a chat message by passing messageId to sendMessage.
Introduces ChatStore and ChatTransport for chat state and transport handling.
HTTP chat transport supports resolvable headers, body, and credentials.
Adds a consumeSseStream option to UI message stream responses.
Adds a function for creating a text stream response.
Supports injecting a message ID when creating a UI message stream.
Adds support for dynamic tools, including tool calls and results.
Adds speech generation through experimental_generateSpeech.
Adds an experimental repairText function to streamObject.
Adds transcription generation through experimental_transcribe.
Adds GLOBAL_DEFAULT_PROVIDER for default provider setup.
Adds an option to convertToModelMessages for ignoring incomplete tool calls.
Adds an onAbort callback to streamText.
Adds a function for piping a text stream to a response.
Adds step preparation support, including modifying step input messages and changing the system prompt.
Adds support for tools executed by providers.
Adds a helper for reading UI message streams.
Adds sendAutomaticallyWhen to Chat.
Adds transcription support to the fal provider.
UI messages now support typed tool parts.
UI message APIs now use the UI_MESSAGE generic.
UI messages support metadata.
Performance 3
Validates provider metadata in a single pass without copying JSON values, reducing memory and CPU usage for deeply nested metadata.
Validates provider metadata in a single pass without copying JSON values, reducing memory and CPU usage for deeply nested metadata.
Validation now checks each part against schemas for its type, stops at the first invalid message or part, and reports invalid JSON in provider metadata as a single issue, preventing excessive memory and CPU use.
Behavior and default changes 9
Diagnostics from completed attempts are preserved, giving developers more information when retries occur.
Google Vertex RAI-filtered results are treated as terminal and are not retried.
OpenAI and Azure OpenAI embedding requests are split by a conservative UTF-8 byte budget derived from aggregate token limits, alongside input count limits.
Tool execution errors are handled automatically.
The experimental_useObject hook supports both Zod v4 and v3 schemas.
Retry logic respects reasonable retry-after-ms and retry-after rate limit headers instead of using exponential backoff.
Tool execute functions may be synchronous.
totalUsage includes usage across all steps, while usage reports a single step.
Generation, streaming, and UI object methods accept both Zod v4 and v3 schemas for validation.
Fixes and other changes 6
Pruning tool calls now removes orphaned reasoning, including consecutive summary parts.
Prototype-named provider metadata no longer causes image metadata aggregation to fail.
Result retryability classification is preserved through the AI Gateway.
Manual continuations can reuse JSON tool outputs containing undefined object properties.
Transient network errors while reading successful response bodies are now marked retryable, including AI Gateway responses.
Mocks now return configured results in order starting with the first call.
ai 433 changes
Breaking changes 32
The 2.x prompt helpers were removed.
AIStream and related exports were removed.
Experimental function exports from ai/core were removed.
The experimental_StreamData export was removed.
The ExperimentalTool export was removed.
ExperimentalXXXMessage types were removed.
The isXXXError methods were removed.
The type was removed; developers can no longer use it in type annotations.
Legacy function and tool calling support was removed.
Legacy providers and RSC render support were removed.
The nanoid export was removed.
The openai peer dependency was removed.
Deprecated provider registry exports were removed.
rawResponse was removed from generate and stream result objects.
The values parameter was renamed to chunks.
streamObject now returns its result immediately instead of returning a Promise.
The experimental_continuationSteps option was removed.
The init option was removed from streamText result methods.
responseMessage was removed from the streamText onFinish callback.
The responseMessages property was removed from streamText and generateText results.
Deprecated roundtrip settings were removed from streamText and generateText.
The warnings result is now a Promise.
ai-stream related methods were removed from streamText.
streamText now returns its result immediately instead of returning a Promise.
streamToResponse and streamingTextResponse were removed.
Deprecated telemetry data was removed.
The LangChain adapter toAIStream method was removed.
The toJSON method was removed from AI SDK errors.
The Tokens RSC helper was removed.
TokenUsage, CompletionTokenUsage, and EmbeddingTokenUsage types were removed.
The setInput helper was removed from useObject.
The vue, svelte, and solid re-exports and dependencies were removed.
Fixes and other changes 1
AssistantResponse was cleaned up; the notes do not specify the API details.