npm / @openai/agents
@openai/agents
What changed in @openai/agents 0.1 to 0.22, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
20 breaking25 security2 deprecations109 new APIs and options22 behavior and defaults4 tooling239 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@openai/agents 0.221 changes
Fixes and other changes 1
Preserves saved guardrail checkpoints when metadata is omitted.
@openai/agents 0.191 changes
Fixes and other changes 1
Preserves agent storage settings configured after construction when making model requests and cloning agents.
@openai/agents 0.189 changes
Breaking changes 1
Docker file APIs now run inside a running container, requiring compatible images with /bin/sh and GNU filesystem utilities, and access uses the container's default user or explicit runAs. Newly added path grants require resume or recreation before file APIs can…
Security 1
Adds fileIOProtection with auto, required, and off modes. The default auto selects Python-based file protection when available and otherwise retains Node filesystem behavior.
New APIs and options 2
Accepts generate, edit, or auto and forwards the selection through streaming and non-streaming Responses requests; leaving it unspecified preserves provider defaults.
Inspect session.fileIOBackend to see which file I/O backend was selected.
Tooling 1
Editor updates accept source files up to 10 MiB; use execCommand for larger edits.
Fixes and other changes 4
Preserves response ownership for agent_end.
Avoids redundant final computer screenshots.
Recovers deferred tools during response continuation.
Preserves sandbox working directories for shell command lists.
@openai/agents 0.1742 changes
Breaking changes 3
Provider-level organization is rejected when openAIClient is supplied; configure it when constructing the OpenAI client instead.
Provider-level project is rejected when openAIClient is supplied; configure it when constructing the OpenAI client instead.
Ambiguous serialized approval checkpoints now fail closed; rejected final tool output is withheld from SDK-owned replay surfaces while earlier accepted history is preserved.
Security 3
Restricts redacted response IDs to official endpoints.
Prevents Git repository argument injection in the sandbox.
Adds server-wide MCP tool guardrails, allowing developers to apply guardrails across MCP tools.
New APIs and options 2
Allows developers to provide custom messages when output guardrails block a result.
Allows labels to be set on Docker sandbox containers.
Behavior and default changes 2
Web search tools can now return image results.
Guardrails started in the same batch now settle before a tripwire or execution failure is surfaced, preserving completed sibling results in run state.
Fixes and other changes 32
Preserves model settings for GPT-5 and newer models.
Detaches aggregated usage records.
Preserves CRLF line endings when applying diffs.
Preserves approvals before handoffs and recovers resumed writes.
Isolates cached MCP tool definitions.
Preserves Chat Completions tool turns during replay.
Resets compaction state when cleared.
Resets compaction state after pop.
Preserves concurrent writes during automatic compaction.
Keeps Conversations history limits local.
Preserves deferred tool identity across approval checkpoints.
Preserves empty hosted MCP outputs.
Handles EOF hunks for newline-terminated files.
Waits for in-flight trace exports during forceFlush.
Preserves errors thrown by handoff callbacks.
Warns instead of silently dropping MCP items in resetHistory.
Deduplicates MCP server lifecycle ownership.
Rejects unsuccessful OpenAI Responses terminal states.
Honors provider client options over defaults.
Decodes PTY output incrementally.
Settles PTY output before cleanup.
Awaits PTY startup cleanup.
Safely serializes guardrail feedback details.
Preserves response span data when a stream closes early.
Recovers failed resumed Session writes before continuing runs.
Strips created_by from RunItem replay.
Enforces the contracts of selected callable type aliases.
Enforces selected object property API contracts.
Preserves ownership when resuming serialized approvals.
Handles span processor rejections.
Preserves tool-search attribution across agent handoffs.
Rejects truncated empty Chat Completions.
@openai/agents 0.1625 changes
Security 1
Validates raster content provided to view_image.
New APIs and options 6
Allows networking to be disabled for Docker sandboxes.
Adds resource options for Modal sandboxes.
Adds timeouts for model calls, allowing developers to limit how long a model call can run.
Adds sandbox working directories scoped to a run.
Setting preserveInputIdentity to true opts into stable prepared-item identity; default filters still receive deep copies, and opted-in items are not frozen.
Tools, handoffs, and agent structured outputs accept supported Standard Schema values alongside Zod and raw JSON Schema; schemas need synchronous validation, input and output JSON Schema generation, and an object root.
Behavior and default changes 1
Standard Schema function-tool parameters require strict mode; unsupported cases should use a Zod schema, raw JSON Schema, or application-side validation.
Tooling 3
Adds provider-neutral testing utilities for exercising runner, sandbox, and Realtime workflows without live dependencies.
Adds provider-neutral testing utilities for exercising Realtime workflows without live WebRTC or WebSocket dependencies.
Adds provider-neutral testing utilities, including ScriptedModel, scriptedSandboxSession(), and ScriptedRealtimeTransport, for exercising workflows without live model, sandbox, WebRTC, or WebSocket dependencies.
Fixes and other changes 14
Call approval decisions now honor the exact decision returned.
Validates dynamic compaction ratios.
Tracing now reports effective run-scoped sandbox paths.
Strict settings are forwarded through the AI SDK.
Unsupported assistant-audio history replay is rejected.
Reasoning stays on its assistant message in Chat Completions.
Granted view_image paths are described.
Interruption result arrays and RunState interruption snapshots are detached to prevent shared mutable snapshot data.
Max-turn handler session output is finalized.
Non-finite audio rates are handled with a fallback.
Responses parallel tool calls are aligned with the tools supplied.
Sandbox HTTP event sink headers are snapshotted.
Stacked diff anchors are applied sequentially, and partially matched anchors are rejected.
Invalid typed tool output diagnostics are redacted.
@openai/agents 0.1528 changes
Breaking changes 4
Agents without an explicit model now use gpt-5.6-luna with reasoning effort none and text verbosity low.
Acknowledge the exact effective mount path to allow credential-bearing in-container mounts that otherwise fail closed.
Applications supplying their own OpenAI client must use openai 7.2 or later.
Overly deep strict JSON schemas are rejected.
Security 1
JSON validation errors are redacted.
Deprecations 1
The Vercel option remains available for released inline S3 configurations but is deprecated.
New APIs and options 6
Applications can explicitly approve an otherwise unsafe non-streaming model replay.
Acknowledge broad credential exposure for mounts involving ambient and external authority.
Set this environment variable to choose a different default model when the application does not configure an explicit model.
Core and Realtime packages publish React Native conditions for portable shims; applications supply an app-owned native WebRTC transport and handle permissions, audio routing, and transport lifecycle.
Realtime configuration now supports GA transcription models and context options.
Stage new input while a run is paused; pending input survives serialization until the next safe model request.
Behavior and default changes 1
Local MCP connections use the MCP TypeScript SDK v2 client, negotiate the 2026-07-28 protocol when available, and fall back compatibly for v1 servers without requiring applications to bridge SDK packages.
Fixes and other changes 15
The adapter supports PDF file inputs, forwards prompt-cache retention, and preserves complete final output and interleaved output ordering.
OpenAI adapter results preserve apply-patch move destinations.
Closing browser WebRTC transports no longer stops caller-owned media streams.
OpenAI adapters preserve streamed Chat Completions audio and citations, propagate request IDs, and count requests when usage is absent.
OpenAI adapter results preserve program item IDs in conversations.
Free-form MCP object schemas are preserved.
Completed guardrail results are published.
Input transcription events accept duration usage.
MCP tool caches are invalidated safely.
Only admitted model turns are counted.
The OpenAI adapter omits parallel_tool_calls when there are no tools.
The OpenAI adapter preserves optional raw usage payloads across streaming and non-streaming runs.
JSON-compatible tool return values retain their structure across RunState serialization.
Strict referenced tool arguments are normalized.
Twilio interruption playback is aligned.
@openai/agents 0.1448 changes
Security 8
Redacts invalid tool argument errors.
Hardens default sandbox snapshot path resolution.
Applies output guardrails to realtime text deltas.
Ephemeral paths are rejected during sandbox archive hydration.
Endpoint credentials are redacted from MCP transport errors.
MCP URL credentials are redacted from external metadata.
Invalid dynamic tool approval arguments now fail closed.
Sandbox rclone installs are pinned and verified.
New APIs and options 6
Adds session history transactions for managing session history.
The AI SDK adapter supports LanguageModelV4 models and AI SDK 7 while preserving existing v2 and v3 compatibility.
Set the corresponding environment variables to 0 or false to opt in to sensitive data logging.
Supported models can generate hosted JavaScript to coordinate eligible tools and reduce intermediate results; program calls persist across streaming, sessions, replay, and serialized RunState.
Use this API to opt in to sensitive model and tool data logging.
Enables S3 buckets to be mounted in Vercel sandboxes using Mountpoint for Amazon S3.
Behavior and default changes 2
Runs now emit task and turn spans by default; set this per-run tracing option to false to opt out.
Model and tool data is no longer logged by default; developers can explicitly opt in.
Fixes and other changes 32
Preserves approved tool results across output guardrails.
Preserves committed tools when output is blocked.
Surfaces content-filter refusals.
Serializes the conversation session ID lifecycle.
Preserves inline compaction items across turns.
Includes all paginated MCP tools.
Preserves causal order when deduplicating model input.
Resolves collisions in model-visible tool names consistently.
Cleans up failed realtime connections.
Enforces output token budgets in the sandbox.
Preserves provenance when session history is repeated.
Cancels sibling tool work when a failure occurs.
Accepts realtime conversation items that lack a status.
Preserves provider metadata for streamed reasoning.
Normalizes closed typeless object schemas in strict tools.
Names task spans after Runner workflows.
Preserves completed tool guardrail results.
MCP servers are cleaned before reconnecting.
Raw realtime transport event payloads are preserved.
Secret references in sandbox environments are preserved.
Docker workdirs within path grants are now allowed.
Lifecycle and agent tool helper types are now exported for developers to use.
Path grants now support native Windows paths.
Verified Docker sessions are preserved across resumes.
AI SDK v3 image tool outputs are now preserved.
The AI SDK integration now supports AI SDK v4 models.
The AI SDK integration flushes a pending assistant message before user or system turns.
Assistant message phases are preserved across Responses history and replay.
Refusal messages are preserved in AI SDK history.
Cancellation signals reach streaming and non-streaming function tools and MCP tool requests; stream completion waits for background work and cleanup.
Missing sandbox paths are distinguished from inaccessible files.
SELinux permission markers are now parsed.
@openai/agents 0.1314 changes
Breaking changes 1
Fails schema conversion for unions and tuples instead of silently dropping members.
New APIs and options 3
Adds support for provider-executed tool search in the AI SDK integration.
Adds support for GPT-5.6 request controls.
Adds experimental hosted multi-agent support.
Behavior and default changes 2
Adds compatible defaults for GPT-5.6 model families.
The default model for RealtimeAgents is now gpt-realtime-2.1, so agents use this model when no model is specified.
Fixes and other changes 8
Base64 decoding no longer depends on host globals.
Fixes correlation of streamed text with output items.
Concatenates all text parts in non-streaming responses.
Preserves stream usage reported on non-final chunks.
Avoids tracing process lifecycle listeners in workerd.
Surfaces the provider error when /realtime/calls fails.
Restores run usage when deserializing RunState.
Supports the usage types from openai 6.46.0.
@openai/agents 0.1212 changes
New APIs and options 1
Adds a handler for recovering from invalid final output.
Behavior and default changes 1
Remote mount edit guidance is distinguished.
Fixes and other changes 10
Avoids replaying acknowledged tool results when resuming.
Rejects invalid handoff input filters.
Accepts OpenAI clients across module resolution modes.
Restores system messages in conversation history.
Empty array tool outputs are preserved.
Malformed realtime messages are handled.
Resolved tool approvals are no longer reevaluated.
Sibling guardrails are awaited after failures.
Special permission bits are parsed by position.
Realtime tool dispatch no longer produces ambiguous dispatches.
@openai/agents 0.1147 changes
Breaking changes 1
LocalFile.src and LocalDir.src must stay within the materialization baseDir unless the source path is covered by Manifest.extraPathGrants.
Security 2
Guards debug environment access during session persistence.
Sandbox GitRepo subpaths are validated.
New APIs and options 10
Adds opt-in guardrails for tool inputs before approval.
Adds support for SDK-only custom data in tool outputs.
Full MCP tool results are exposed in a serializable form.
Adds helpers for dispatching tracing span lifecycle events.
Adds helpers to dispatch completed tracing lifecycle events.
Adds overrides when cloning a Handoff.
Adds opt-in recovery for missing function tools.
Adds helpers for scoped trace context.
Adds configurable tracing ID generation.
Sandbox archive extraction limits are configurable, allowing developers to set limits for archive extraction.
Behavior and default changes 2
Tracing shutdown is best-effort on process exit, so shutdown failures do not prevent process exit.
RealtimeAgents now default to gpt-realtime-2.
Fixes and other changes 32
Incomplete authentication is delegated to the Vercel SDK.
Legacy session authentication can be recovered through the Vercel SDK.
The Modal sandbox provider is updated to work with Modal SDK 0.7.6 APIs.
Sandbox errors expose retryability metadata.
The Chat Completions converter now honors top-level input_image detail.
Sets model metadata on generation spans for streaming and chat completions.
Preserves AI SDK output token details in usage tracing.
Makes Runner's modelProvider optional.
Adds trace clearing for resumed RunState runs.
Adds injection of tracing context storage.
Adds public helpers for restoring Usage from JSON.
Delays WebRTC close for transient peer disconnects.
Aborts active tracing exports when shutdown times out.
Avoids empty tool outputs in chat completions.
Preserves local approval rejection reasons.
Preserves reasoning identities for OpenAI Conversations persistence.
Prevents automatic responses for unknown realtime tools.
Chat Completions feature validation is strict and aligned.
Cloudflare sandbox exec and cleanup errors now include error details.
GitRepo root subpath aliases are preserved.
Handoff hooks can be callback-only.
Tracing guards against no-op span IDs.
Realtime null audio channels are treated as unset.
Realtime output audio content from output item events is preserved.
Computer instances are excluded from provider detection.
Reasoning is not duplicated across parallel tool calls in ai-sdk.
Reasoning items orphaned by dropped tool calls are dropped.
The latest response ID is preserved when resuming.
Sandbox provider errors now include structured error details.
Trace batch processing continues after exporter errors.
Sandbox behavior was aligned with Blaxel parity.
Sandbox environment resolvers are preserved across manifest merges.
@openai/agents 0.108 changes
Breaking changes 2
Cloudflare workspace hydration now rejects external symlink targets.
The SDK now defaults to gpt-5.4-mini instead of gpt-4.1, affecting agents and runs that do not explicitly set a model.
Security 1
Hosted MCP approval policies are validated.
New APIs and options 4
MCPConfig in Agent can include the MCP server name in tool names to prevent conflicts with tools from other MCP servers.
Sandbox configuration now accepts manifest init shorthands.
Setting maxTurns to null disables the Agents SDK run turn limit; omitting it preserves the existing DEFAULT_MAX_TURNS value of 10.
RunConfig adds SDK-side concurrency configuration for local function tool execution, separate from provider-side ModelSettings.parallelToolCalls; unset preserves existing behavior.
Fixes and other changes 1
Session history is restored when responses compaction replacement fails.
@openai/agents 0.923 changes
Breaking changes 1
Rejects symlink ancestors in remote local sources.
Security 2
Aligns sandbox mounts with Python and protects rclone credentials.
Narrows the sandbox public entrypoint.
New APIs and options 14
Adds an option to include code interpreter output.
Adds model settings for context management.
Adds a sandbox client for container isolation and image parity.
Adds a workspace contract for synthetic and local files and directories, Git repositories, environment, users, groups, permissions, and mounts.
Adds pluggable memory stores for sandbox-agent memory.
Adds hosted sandbox client exports for Blaxel, Cloudflare, Daytona, E2B, Modal, Runloop, and Vercel.
Exposes keepalive options for Responses WebSockets.
Adds support for compatible shell and filesystem operations to run as a specified user.
Adds built-in capabilities for filesystem access, shell access, patching and editing, image inspection, lazy skills, memory, and compaction.
Adds a beta SDK surface for running agents with persistent workspaces and sandbox-backed capabilities in JavaScript.
Adds per-run configuration for sandbox clients, live sessions, serialized session resume, manifest overrides, snapshots, and materialization limits.
Adds local and remote snapshot store interfaces for carrying workspace contents across runs.
Adds convenience accessors for tool items.
Adds a sandbox client for local development.
Behavior and default changes 2
Adds concurrency limits for remote sandbox manifest and local directory materialization.
Adds sandbox-aware serialization for resuming runner-managed sandbox sessions.
Fixes and other changes 4
Avoids replaying assistant conversation item IDs.
RunState serialization preserves agent identity when agents have duplicate names.
Reconciles streamed function calls when server-managed runs abort.
Surfaces model refusals during run resolution.
@openai/agents 0.819 changes
Breaking changes 2
Unsupported SIP VAD fields now fail fast.
RunState serialization now rejects duplicate agent names.
Security 1
Streamed final output is hidden after guardrail failures.
New APIs and options 3
Exposes createAiSdkUiMessageStream for developers to use.
Resource wrappers are added for MCP.
Session IDs are added for streamable MCP sessions.
Behavior and default changes 4
The default reasoning effort was updated for newer models.
Empty computer safety checks are omitted on replay.
Realtime response creation is deferred until the previous turn finishes.
The default realtime model is now gpt-realtime-1.5.
Fixes and other changes 9
Compacted Responses user messages are normalized before they are stored.
Discriminated union tool schemas are restored.
Nested audio configuration is preserved.
Trace provider shutdown cleanup is deduplicated.
External web access is now forwarded for web search tools.
Ignored handoffs are hidden without breaking managed continuations.
Reasoning and approval placeholders are stripped from handoff filters.
Issues with MCP server wrappers are resolved.
Segmented assistant output is recovered in agent tools and finalization.
@openai/agents 0.74 changes
New APIs and options 2
Adds helpers to narrow OpenAI raw model stream events.
Opt-in retry settings for model API calls are available through ModelSettings and can be passed as run config or as model settings for an agent.
Fixes and other changes 2
Orphan hosted shell calls are no longer replayed across turns.
Orphan hosted shell calls are pruned from public history.
@openai/agents 0.68 changes
Breaking changes 2
Import the aisdk() helper from this subpath.
The deprecated top-level AI SDK exports have been removed, allowing use of the extensions package without AI SDK modules.
New APIs and options 2
You can use the gpt-5.4 model for the computer use tool, in addition to the existing computer-use-preview model.
The Agents SDK supports the tool search tool, including namespaces.
Fixes and other changes 4
Canonical chat completions providerData fields are preserved.
GA computer tools can be used without display metadata.
MCP image mimeType is preserved in tool outputs.
Custom client tool_search runtime tools are rehydrated when resuming.
@openai/agents 0.59 changes
Security 1
Oversized tracing span payloads are sanitized.
New APIs and options 5
Approvals can now use custom rejection messages.
Run results expose agent tool invocation metadata, allowing developers to inspect tool invocation details.
Adds an output text transform hook for AI SDK provider compatibility.
Opts all OpenAI Responses model agent calls into WebSocket mode; the default behavior is unchanged.
Enables a reusable WebSocket connection for Responses API calls.
Fixes and other changes 3
The missing type field is handled for non-nullable enums.
OpenAI Responses request IDs are preserved in raw responses.
The OpenAI realtime model type list was synced.
@openai/agents 0.451 changes
Breaking changes 2
The default reasoning effort for gpt-5.1 and gpt-5.2 changes to "none"; developers who relied on "low" should explicitly pass ModelSettings with reasoning.effort="low".
Zod v3 support is dropped for schema-based tools and outputs; use Zod v4 instead. Vanilla JavaScript users who do not rely on the TypeScript compiler can still use the Zod v3 runtime.
Deprecations 1
This is the recommended import path for the aisdk() helper; the top-level import remains available for now but is deprecated and will be removed in v0.5.0.
New APIs and options 14
Adds the opt-in 'omit' policy for Runner options and the run utility to mitigate 400 errors with reasoning models; the default behavior is unchanged.
Function tools can now have timeouts.
The shell tool now supports a container-based hosted runtime, configured through environment.
The hosted shell runtime now supports native skills, including skill references configured with a skill ID and version.
Adds Codex run-context thread reuse and a same-thread workflow for extension authors.
Adds configurable error messages for approval-rejection tools.
Adds approvals and a run context argument for the computer tool.
Adds errorFunction support for MCP servers.
Adds meta resolver support for MCP tools.
Adds an onSafetyCheck hook for computer safety checks.
Adds structured input builders for agent tools.
Enables server routes in React/Next.js apps to stream data that can be consumed by useChat on the frontend.
Adds maxTurns error handlers with runData snapshots.
A lifecycle helper provides a convenient way to manage multiple MCP server instances.
Behavior and default changes 4
Passes run context into applyPatch editor operations, allowing those operations to use the run context.
Uses streamed chunk IDs in Chat Completions traces and output items.
Normalizes response message content metadata into providerData.
The dependency becomes an optional peer dependency of openai/agents-extensions, supporting both v2 and v3 formats and allowing developers to use the latest major version without waiting for this SDK to migrate.
Fixes and other changes 30
Function tool calls now respect tracingDisabled, allowing tracing to be disabled for those calls.
Preserves nested agent-tool approval attribution when restoring.
Awaits parallel input guardrails before resolving a turn in non-streaming runs.
Persists the reasoning item ID policy across resumes and clarifies its interaction with filters.
Rehydrates RunState interruption items when resuming.
Avoids a browser startup crash in Bun when shim modules are temporarily unresolved.
Normalizes data URL images for AI SDK providers.
Propagates output guardrail context types to OutputGuardrailFunctionArgs.
Preserves the pre-tool assistant transcript in realtime agent_end events.
Prevents duplicate realtime session events after reconnect.
Respects toolChoice none overrides after tool lifecycle updates.
Emits tracing function spans for shell, apply_patch, and computer tools.
Normalizes realtime turnDetection modelVersion to model_version.
Avoids internal dist type imports in the exporter, reducing reliance on internal package paths.
Propagates trace metadata to spans for processors.
connect() waits for the session.updated acknowledgment before resolving.
Generation usage metadata is preserved via usage.details.
AI SDK cacheRead usage is now mapped to cached_tokens.
Legacy ShellTool typing is preserved.
Strict shell pending statuses are preserved.
Named tool_choice is omitted when the prompt supplies tools.
Populates streamed chat completion choices in generation traces.
Preserves Zod descriptions in JSON schema output.
Fixes handling of the traceIncludeSensitiveData option.
Nested agent tool approvals now resume after interruptions.
Abort listeners are detached after streaming completion.
Resuming run state now prefers the run tracing config.
Keeps compaction auto mode aligned with store=false.
Handles the legacy fileId fallback.
Handles invalid JSON in tool call arguments gracefully.
@openai/agents 0.363 changes
Security 3
Conversation items are sanitized for non-OpenAI models in HITL flows.
The payload is limited to documented fields.
A security patch was applied for the Next.js RCE vulnerability CVE-2025-66478.
New APIs and options 28
An experimental Codex extension lets agents use Codex as a tool via codexTool(); it runs the Codex CLI as a subprocess and uses existing Codex configuration, skills, and capabilities.
Adds ai-sdk v3 support and improves compatibility with other providers.
Tracing API keys can now be supplied per run.
Exposed as a type in generated declarations.
The TypeScript SDK adds guardrails for tool inputs and outputs.
Exposed from the top-level exports so wrappers can import the tool type.
Adds support for gpt-image-1-mini and gpt-image-1.5.
Adds a session feature wired to responses.compact.
Anthropic extended thinking support was added.
Chat completions now support input_file when possible.
An agent used as a tool can now use on(key) handlers.
An agent used as a tool can now use onStream handlers.
OpenAIConversationsSessionOptions is now exported.
SpanData types are now exported.
Token usage is tracked while streaming responses for OpenAI models.
The agent_start event hooks now accept an optional turnInput.
The input audio transcription completed event now includes a usage field.
Caching for MCP list tools is customizable.
Output guardrails can access tool call items.
ToolOptions is now exported from the agents-core package.
Adds the prompt_cache_retention option to ModelSettings.
Adds the runInParallel option to input guardrail initialization.
Adds a list of per-request usage data to Usage.
Adds reasoning.effort: none for gpt-5.1.
Adds apply patch functionality for developers using the Agents SDK.
Adds shell functionality for developers using the Agents SDK.
Adds a memory feature using the sessions store.
Adds SIP support in the realtime agent runner.
Behavior and default changes 1
Tool parsing failures expose the raw input and validation error.
Fixes and other changes 31
Subclass error names are now set, so errors report the subclass name.
Fixes tool calls when content is present and adds content: null when tool calls are present.
Null values for noise_reduction are ignored in realtime.
Chat Completions calls skip response_format when its value is "text".
Run resumption and the tool execution pipeline are stabilized.
Cancellation aborts promptly and resolves completion when cancelled.
Null values for transcription are ignored in realtime.
Null values are ignored and falsy turn detection configuration values are preserved.
MCP servers now use clientSessionTimeoutSeconds.
Enables creating and disposing Computer per agent run.
Preserves completions by narrowing string branches in literal unions.
Fixes previousSpan being set incorrectly in tracing.
Adds usage data integration to the responses.compact-wired session feature.
The agent_tool_end event is now emitted when function tools throw errors.
AI SDK error details in tracing were improved.
providerData is now propagated for function_calls in the chat completions converter.
Duplicate function_call items are prevented in session history after resuming from interruption.
A string in the data field of an input_image message item now works with providers that previously did not support it.
MCPServerSSE now forwards the fetch parameter to SSEClientTransport.
Leading {} is stripped from streaming tool call arguments for Bedrock.
Gemini thought_signature is preserved in multi-turn tool calls.
Provides a developer-friendly message for output type errors.
Fixes failures to run MCP servers when deserializing run state data.
Fixes a transcript removal issue when interrupted.
Fixes the top-level voice parameter in realtime session configuration so it works.
Omits the tools parameter when a prompt ID is set but the agent has no tools.
Adds usage data from the stream to the response for Chat Completions.
Listens to peerConnection state to detect disconnects.
Fixes non-OpenAI models with OpenRouter sending an empty string when calling tools.
Fixes a type issue with realtime agent handoffs.
Fixes a bug where tracingDisabled in realtime config does not work.
@openai/agents 0.23 changes
Breaking changes 1
The underlying openai package version range is now 6.x, which may affect dependency resolution for developers using @openai/agents.
New APIs and options 1
Tools can return image and file data to an Agent in OpenAI's standard format.
Fixes and other changes 1
Fixes a handoff creation error when using onHandoff without inputType.
@openai/agents 0.16 changes
Security 1
Fixes hostedMcpTool failing to send the authorization parameter to the Responses API.
Fixes and other changes 5
Invalid model settings when a prompt is set in Agent were fixed.
Compatibility with tool calls was improved for conversationId and previousResponseId.
An explicit model override for prompt was enabled.
Usage details validation in realtime events was resolved.
In async mode, traces now wait for streaming to complete before ending.