unstale

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

@unstale/cli on npm

@openai/agents 0.221 changes

Fixes and other changes 1

  • Preserves saved guardrail checkpoints when metadata is omitted.

    0.22.0release notes

@openai/agents 0.191 changes

Fixes and other changes 1

  • Preserves agent storage settings configured after construction when making model requests and cloning agents.

    0.19.0release notes

@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…

    0.18.0release notes

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.

    0.18.0release notes

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.

    0.18.0release notes

  • Inspect session.fileIOBackend to see which file I/O backend was selected.

    0.18.0release notes

Tooling 1

  • Editor updates accept source files up to 10 MiB; use execCommand for larger edits.

    0.18.0release notes

Fixes and other changes 4

  • Preserves response ownership for agent_end.

    0.18.0release notes

  • Avoids redundant final computer screenshots.

    0.18.0release notes

  • Recovers deferred tools during response continuation.

    0.18.0release notes

  • Preserves sandbox working directories for shell command lists.

    0.18.0release notes

@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.

    0.17.0release notes

  • Provider-level project is rejected when openAIClient is supplied; configure it when constructing the OpenAI client instead.

    0.17.0release notes

  • Ambiguous serialized approval checkpoints now fail closed; rejected final tool output is withheld from SDK-owned replay surfaces while earlier accepted history is preserved.

    0.17.0release notes

Security 3

  • Restricts redacted response IDs to official endpoints.

    0.17.1release notes

  • Prevents Git repository argument injection in the sandbox.

    0.17.1release notes

  • Adds server-wide MCP tool guardrails, allowing developers to apply guardrails across MCP tools.

    0.17.1release notes

New APIs and options 2

  • Allows developers to provide custom messages when output guardrails block a result.

    0.17.1release notes

  • Allows labels to be set on Docker sandbox containers.

    0.17.1release notes

Behavior and default changes 2

  • Web search tools can now return image results.

    0.17.1release notes

  • Guardrails started in the same batch now settle before a tripwire or execution failure is surfaced, preserving completed sibling results in run state.

    0.17.0release notes

Fixes and other changes 32

  • Preserves model settings for GPT-5 and newer models.

    0.17.2release notes

  • Detaches aggregated usage records.

    0.17.1release notes

  • Preserves CRLF line endings when applying diffs.

    0.17.1release notes

  • Preserves approvals before handoffs and recovers resumed writes.

    0.17.1release notes

  • Isolates cached MCP tool definitions.

    0.17.1release notes

  • Preserves Chat Completions tool turns during replay.

    0.17.1release notes

  • Resets compaction state when cleared.

    0.17.1release notes

  • Resets compaction state after pop.

    0.17.1release notes

  • Preserves concurrent writes during automatic compaction.

    0.17.1release notes

  • Keeps Conversations history limits local.

    0.17.1release notes

  • Preserves deferred tool identity across approval checkpoints.

    0.17.1release notes

  • Preserves empty hosted MCP outputs.

    0.17.1release notes

  • Handles EOF hunks for newline-terminated files.

    0.17.1release notes

  • Waits for in-flight trace exports during forceFlush.

    0.17.1release notes

  • Preserves errors thrown by handoff callbacks.

    0.17.1release notes

  • Warns instead of silently dropping MCP items in resetHistory.

    0.17.1release notes

  • Deduplicates MCP server lifecycle ownership.

    0.17.1release notes

  • Rejects unsuccessful OpenAI Responses terminal states.

    0.17.1release notes

  • Honors provider client options over defaults.

    0.17.1release notes

  • Decodes PTY output incrementally.

    0.17.1release notes

  • Settles PTY output before cleanup.

    0.17.1release notes

  • Awaits PTY startup cleanup.

    0.17.1release notes

  • Safely serializes guardrail feedback details.

    0.17.1release notes

  • Preserves response span data when a stream closes early.

    0.17.1release notes

  • Recovers failed resumed Session writes before continuing runs.

    0.17.1release notes

  • Strips created_by from RunItem replay.

    0.17.1release notes

  • Enforces the contracts of selected callable type aliases.

    0.17.1release notes

  • Enforces selected object property API contracts.

    0.17.1release notes

  • Preserves ownership when resuming serialized approvals.

    0.17.1release notes

  • Handles span processor rejections.

    0.17.1release notes

  • Preserves tool-search attribution across agent handoffs.

    0.17.1release notes

  • Rejects truncated empty Chat Completions.

    0.17.1release notes

@openai/agents 0.1625 changes

Security 1

  • Validates raster content provided to view_image.

    0.16.1release notes

New APIs and options 6

  • Allows networking to be disabled for Docker sandboxes.

    0.16.1release notes

  • Adds resource options for Modal sandboxes.

    0.16.1release notes

  • Adds timeouts for model calls, allowing developers to limit how long a model call can run.

    0.16.1release notes

  • Adds sandbox working directories scoped to a run.

    0.16.1release notes

  • Setting preserveInputIdentity to true opts into stable prepared-item identity; default filters still receive deep copies, and opted-in items are not frozen.

    0.16.0release notes

  • 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.

    0.16.0release notes

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.

    0.16.0release notes

Tooling 3

  • Adds provider-neutral testing utilities for exercising runner, sandbox, and Realtime workflows without live dependencies.

    0.16.0release notes

  • Adds provider-neutral testing utilities for exercising Realtime workflows without live WebRTC or WebSocket dependencies.

    0.16.0release notes

  • Adds provider-neutral testing utilities, including ScriptedModel, scriptedSandboxSession(), and ScriptedRealtimeTransport, for exercising workflows without live model, sandbox, WebRTC, or WebSocket dependencies.

    0.16.0release notes

Fixes and other changes 14

  • Call approval decisions now honor the exact decision returned.

    0.16.1release notes

  • Validates dynamic compaction ratios.

    0.16.1release notes

  • Tracing now reports effective run-scoped sandbox paths.

    0.16.1release notes

  • Strict settings are forwarded through the AI SDK.

    0.16.0release notes

  • Unsupported assistant-audio history replay is rejected.

    0.16.0release notes

  • Reasoning stays on its assistant message in Chat Completions.

    0.16.0release notes

  • Granted view_image paths are described.

    0.16.0release notes

  • Interruption result arrays and RunState interruption snapshots are detached to prevent shared mutable snapshot data.

    0.16.0release notes

  • Max-turn handler session output is finalized.

    0.16.0release notes

  • Non-finite audio rates are handled with a fallback.

    0.16.0release notes

  • Responses parallel tool calls are aligned with the tools supplied.

    0.16.0release notes

  • Sandbox HTTP event sink headers are snapshotted.

    0.16.0release notes

  • Stacked diff anchors are applied sequentially, and partially matched anchors are rejected.

    0.16.0release notes

  • Invalid typed tool output diagnostics are redacted.

    0.16.0release notes

@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.

    0.15.0release notes

  • Acknowledge the exact effective mount path to allow credential-bearing in-container mounts that otherwise fail closed.

    0.15.0release notes

  • Applications supplying their own OpenAI client must use openai 7.2 or later.

    0.15.0release notes

  • Overly deep strict JSON schemas are rejected.

    0.15.0release notes

Security 1

Deprecations 1

  • The Vercel option remains available for released inline S3 configurations but is deprecated.

    0.15.0release notes

New APIs and options 6

  • Applications can explicitly approve an otherwise unsafe non-streaming model replay.

    0.15.0release notes

  • Acknowledge broad credential exposure for mounts involving ambient and external authority.

    0.15.0release notes

  • Set this environment variable to choose a different default model when the application does not configure an explicit model.

    0.15.0release notes

  • 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.

    0.15.0release notes

  • Realtime configuration now supports GA transcription models and context options.

    0.15.0release notes

  • Stage new input while a run is paused; pending input survives serialization until the next safe model request.

    0.15.0release notes

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.

    0.15.0release notes

Fixes and other changes 15

  • The adapter supports PDF file inputs, forwards prompt-cache retention, and preserves complete final output and interleaved output ordering.

    0.15.0release notes

  • OpenAI adapter results preserve apply-patch move destinations.

    0.15.0release notes

  • Closing browser WebRTC transports no longer stops caller-owned media streams.

    0.15.0release notes

  • OpenAI adapters preserve streamed Chat Completions audio and citations, propagate request IDs, and count requests when usage is absent.

    0.15.0release notes

  • OpenAI adapter results preserve program item IDs in conversations.

    0.15.0release notes

  • Free-form MCP object schemas are preserved.

    0.15.0release notes

  • Completed guardrail results are published.

    0.15.0release notes

  • Input transcription events accept duration usage.

    0.15.0release notes

  • MCP tool caches are invalidated safely.

    0.15.0release notes

  • Only admitted model turns are counted.

    0.15.0release notes

  • The OpenAI adapter omits parallel_tool_calls when there are no tools.

    0.15.0release notes

  • The OpenAI adapter preserves optional raw usage payloads across streaming and non-streaming runs.

    0.15.0release notes

  • JSON-compatible tool return values retain their structure across RunState serialization.

    0.15.0release notes

  • Strict referenced tool arguments are normalized.

    0.15.0release notes

  • Twilio interruption playback is aligned.

    0.15.0release notes

@openai/agents 0.1448 changes

Security 8

  • Redacts invalid tool argument errors.

    0.14.3release notes

  • Hardens default sandbox snapshot path resolution.

    0.14.3release notes

  • Applies output guardrails to realtime text deltas.

    0.14.3release notes

  • Ephemeral paths are rejected during sandbox archive hydration.

    0.14.2release notes

  • Endpoint credentials are redacted from MCP transport errors.

    0.14.2release notes

  • MCP URL credentials are redacted from external metadata.

    0.14.2release notes

  • Invalid dynamic tool approval arguments now fail closed.

    0.14.0release notes

  • Sandbox rclone installs are pinned and verified.

    0.14.0release notes

New APIs and options 6

  • Adds session history transactions for managing session history.

    0.14.3release notes

  • The AI SDK adapter supports LanguageModelV4 models and AI SDK 7 while preserving existing v2 and v3 compatibility.

    0.14.0release notes

  • Set the corresponding environment variables to 0 or false to opt in to sensitive data logging.

    0.14.0release notes

  • Supported models can generate hosted JavaScript to coordinate eligible tools and reduce intermediate results; program calls persist across streaming, sessions, replay, and serialized RunState.

    0.14.0release notes

  • Use this API to opt in to sensitive model and tool data logging.

    0.14.0release notes

  • Enables S3 buckets to be mounted in Vercel sandboxes using Mountpoint for Amazon S3.

    0.14.0release notes

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.

    0.14.0release notes

  • Model and tool data is no longer logged by default; developers can explicitly opt in.

    0.14.0release notes

Fixes and other changes 32

  • Preserves approved tool results across output guardrails.

    0.14.3release notes

  • Preserves committed tools when output is blocked.

    0.14.3release notes

  • Surfaces content-filter refusals.

    0.14.3release notes

  • Serializes the conversation session ID lifecycle.

    0.14.3release notes

  • Preserves inline compaction items across turns.

    0.14.3release notes

  • Includes all paginated MCP tools.

    0.14.3release notes

  • Preserves causal order when deduplicating model input.

    0.14.3release notes

  • Resolves collisions in model-visible tool names consistently.

    0.14.3release notes

  • Cleans up failed realtime connections.

    0.14.3release notes

  • Enforces output token budgets in the sandbox.

    0.14.3release notes

  • Preserves provenance when session history is repeated.

    0.14.3release notes

  • Cancels sibling tool work when a failure occurs.

    0.14.3release notes

  • Accepts realtime conversation items that lack a status.

    0.14.3release notes

  • Preserves provider metadata for streamed reasoning.

    0.14.3release notes

  • Normalizes closed typeless object schemas in strict tools.

    0.14.3release notes

  • Names task spans after Runner workflows.

    0.14.3release notes

  • Preserves completed tool guardrail results.

    0.14.3release notes

  • MCP servers are cleaned before reconnecting.

    0.14.2release notes

  • Raw realtime transport event payloads are preserved.

    0.14.2release notes

  • Secret references in sandbox environments are preserved.

    0.14.2release notes

  • Docker workdirs within path grants are now allowed.

    0.14.1release notes

  • Lifecycle and agent tool helper types are now exported for developers to use.

    0.14.1release notes

  • Path grants now support native Windows paths.

    0.14.1release notes

  • Verified Docker sessions are preserved across resumes.

    0.14.1release notes

  • AI SDK v3 image tool outputs are now preserved.

    0.14.0release notes

  • The AI SDK integration now supports AI SDK v4 models.

    0.14.0release notes

  • The AI SDK integration flushes a pending assistant message before user or system turns.

    0.14.0release notes

  • Assistant message phases are preserved across Responses history and replay.

    0.14.0release notes

  • Refusal messages are preserved in AI SDK history.

    0.14.0release notes

  • Cancellation signals reach streaming and non-streaming function tools and MCP tool requests; stream completion waits for background work and cleanup.

    0.14.0release notes

  • Missing sandbox paths are distinguished from inaccessible files.

    0.14.0release notes

  • SELinux permission markers are now parsed.

    0.14.0release notes

@openai/agents 0.1314 changes

Breaking changes 1

  • Fails schema conversion for unions and tuples instead of silently dropping members.

    0.13.4release notes

New APIs and options 3

  • Adds support for provider-executed tool search in the AI SDK integration.

    0.13.5release notes

  • Adds support for GPT-5.6 request controls.

    0.13.2release notes

  • Adds experimental hosted multi-agent support.

    0.13.2release notes

Behavior and default changes 2

  • Adds compatible defaults for GPT-5.6 model families.

    0.13.1release notes

  • The default model for RealtimeAgents is now gpt-realtime-2.1, so agents use this model when no model is specified.

    0.13.0release notes

Fixes and other changes 8

  • Base64 decoding no longer depends on host globals.

    0.13.5release notes

  • Fixes correlation of streamed text with output items.

    0.13.5release notes

  • Concatenates all text parts in non-streaming responses.

    0.13.4release notes

  • Preserves stream usage reported on non-final chunks.

    0.13.4release notes

  • Avoids tracing process lifecycle listeners in workerd.

    0.13.3release notes

  • Surfaces the provider error when /realtime/calls fails.

    0.13.2release notes

  • Restores run usage when deserializing RunState.

    0.13.2release notes

  • Supports the usage types from openai 6.46.0.

    0.13.1release notes

@openai/agents 0.1212 changes

New APIs and options 1

  • Adds a handler for recovering from invalid final output.

    0.12.1release notes

Behavior and default changes 1

Fixes and other changes 10

  • Avoids replaying acknowledged tool results when resuming.

    0.12.1release notes

  • Rejects invalid handoff input filters.

    0.12.1release notes

  • Accepts OpenAI clients across module resolution modes.

    0.12.1release notes

  • Restores system messages in conversation history.

    0.12.1release notes

  • Empty array tool outputs are preserved.

    0.12.0release notes

  • Malformed realtime messages are handled.

    0.12.0release notes

  • Resolved tool approvals are no longer reevaluated.

    0.12.0release notes

  • Sibling guardrails are awaited after failures.

    0.12.0release notes

  • Special permission bits are parsed by position.

    0.12.0release notes

  • Realtime tool dispatch no longer produces ambiguous dispatches.

    0.12.0release notes

@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.

    0.11.0release notes

Security 2

  • Guards debug environment access during session persistence.

    0.11.5release notes

  • Sandbox GitRepo subpaths are validated.

    0.11.2release notes

New APIs and options 10

  • Adds opt-in guardrails for tool inputs before approval.

    0.11.8release notes

  • Adds support for SDK-only custom data in tool outputs.

    0.11.8release notes

  • Full MCP tool results are exposed in a serializable form.

    0.11.7release notes

  • Adds helpers for dispatching tracing span lifecycle events.

    0.11.6release notes

  • Adds helpers to dispatch completed tracing lifecycle events.

    0.11.5release notes

  • Adds overrides when cloning a Handoff.

    0.11.5release notes

  • Adds opt-in recovery for missing function tools.

    0.11.5release notes

  • Adds helpers for scoped trace context.

    0.11.5release notes

  • Adds configurable tracing ID generation.

    0.11.5release notes

  • Sandbox archive extraction limits are configurable, allowing developers to set limits for archive extraction.

    0.11.2release notes

Behavior and default changes 2

  • Tracing shutdown is best-effort on process exit, so shutdown failures do not prevent process exit.

    0.11.3release notes

  • RealtimeAgents now default to gpt-realtime-2.

    0.11.0release notes

Fixes and other changes 32

  • Incomplete authentication is delegated to the Vercel SDK.

    0.11.7release notes

  • Legacy session authentication can be recovered through the Vercel SDK.

    0.11.7release notes

  • The Modal sandbox provider is updated to work with Modal SDK 0.7.6 APIs.

    0.11.7release notes

  • Sandbox errors expose retryability metadata.

    0.11.7release notes

  • The Chat Completions converter now honors top-level input_image detail.

    0.11.7release notes

  • Sets model metadata on generation spans for streaming and chat completions.

    0.11.6release notes

  • Preserves AI SDK output token details in usage tracing.

    0.11.5release notes

  • Makes Runner's modelProvider optional.

    0.11.5release notes

  • Adds trace clearing for resumed RunState runs.

    0.11.5release notes

  • Adds injection of tracing context storage.

    0.11.5release notes

  • Adds public helpers for restoring Usage from JSON.

    0.11.5release notes

  • Delays WebRTC close for transient peer disconnects.

    0.11.5release notes

  • Aborts active tracing exports when shutdown times out.

    0.11.4release notes

  • Avoids empty tool outputs in chat completions.

    0.11.4release notes

  • Preserves local approval rejection reasons.

    0.11.4release notes

  • Preserves reasoning identities for OpenAI Conversations persistence.

    0.11.4release notes

  • Prevents automatic responses for unknown realtime tools.

    0.11.4release notes

  • Chat Completions feature validation is strict and aligned.

    0.11.2release notes

  • Cloudflare sandbox exec and cleanup errors now include error details.

    0.11.2release notes

  • GitRepo root subpath aliases are preserved.

    0.11.2release notes

  • Handoff hooks can be callback-only.

    0.11.2release notes

  • Tracing guards against no-op span IDs.

    0.11.2release notes

  • Realtime null audio channels are treated as unset.

    0.11.2release notes

  • Realtime output audio content from output item events is preserved.

    0.11.2release notes

  • Computer instances are excluded from provider detection.

    0.11.2release notes

  • Reasoning is not duplicated across parallel tool calls in ai-sdk.

    0.11.2release notes

  • Reasoning items orphaned by dropped tool calls are dropped.

    0.11.2release notes

  • The latest response ID is preserved when resuming.

    0.11.2release notes

  • Sandbox provider errors now include structured error details.

    0.11.2release notes

  • Trace batch processing continues after exporter errors.

    0.11.2release notes

  • Sandbox behavior was aligned with Blaxel parity.

    0.11.1release notes

  • Sandbox environment resolvers are preserved across manifest merges.

    0.11.1release notes

@openai/agents 0.108 changes

Breaking changes 2

  • Cloudflare workspace hydration now rejects external symlink targets.

    0.10.0release notes

  • 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.

    0.10.0release notes

Security 1

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.

    0.10.0release notes

  • Sandbox configuration now accepts manifest init shorthands.

    0.10.0release notes

  • Setting maxTurns to null disables the Agents SDK run turn limit; omitting it preserves the existing DEFAULT_MAX_TURNS value of 10.

    0.10.0release notes

  • RunConfig adds SDK-side concurrency configuration for local function tool execution, separate from provider-side ModelSettings.parallelToolCalls; unset preserves existing behavior.

    0.10.0release notes

Fixes and other changes 1

  • Session history is restored when responses compaction replacement fails.

    0.10.1release notes

@openai/agents 0.923 changes

Breaking changes 1

  • Rejects symlink ancestors in remote local sources.

    0.9.0release notes

Security 2

  • Aligns sandbox mounts with Python and protects rclone credentials.

    0.9.0release notes

  • Narrows the sandbox public entrypoint.

    0.9.0release notes

New APIs and options 14

  • Adds an option to include code interpreter output.

    0.9.0release notes

  • Adds model settings for context management.

    0.9.0release notes

  • Adds a sandbox client for container isolation and image parity.

    0.9.0release notes

  • Adds a workspace contract for synthetic and local files and directories, Git repositories, environment, users, groups, permissions, and mounts.

    0.9.0release notes

  • Adds pluggable memory stores for sandbox-agent memory.

    0.9.0release notes

  • Adds hosted sandbox client exports for Blaxel, Cloudflare, Daytona, E2B, Modal, Runloop, and Vercel.

    0.9.0release notes

  • Exposes keepalive options for Responses WebSockets.

    0.9.0release notes

  • Adds support for compatible shell and filesystem operations to run as a specified user.

    0.9.0release notes

  • Adds built-in capabilities for filesystem access, shell access, patching and editing, image inspection, lazy skills, memory, and compaction.

    0.9.0release notes

  • Adds a beta SDK surface for running agents with persistent workspaces and sandbox-backed capabilities in JavaScript.

    0.9.0release notes

  • Adds per-run configuration for sandbox clients, live sessions, serialized session resume, manifest overrides, snapshots, and materialization limits.

    0.9.0release notes

  • Adds local and remote snapshot store interfaces for carrying workspace contents across runs.

    0.9.0release notes

  • Adds convenience accessors for tool items.

    0.9.0release notes

  • Adds a sandbox client for local development.

    0.9.0release notes

Behavior and default changes 2

  • Adds concurrency limits for remote sandbox manifest and local directory materialization.

    0.9.0release notes

  • Adds sandbox-aware serialization for resuming runner-managed sandbox sessions.

    0.9.0release notes

Fixes and other changes 4

  • Avoids replaying assistant conversation item IDs.

    0.9.1release notes

  • RunState serialization preserves agent identity when agents have duplicate names.

    0.9.1release notes

  • Reconciles streamed function calls when server-managed runs abort.

    0.9.1release notes

  • Surfaces model refusals during run resolution.

    0.9.0release notes

@openai/agents 0.819 changes

Breaking changes 2

  • Unsupported SIP VAD fields now fail fast.

    0.8.4release notes

  • RunState serialization now rejects duplicate agent names.

    0.8.3release notes

Security 1

  • Streamed final output is hidden after guardrail failures.

    0.8.1release notes

New APIs and options 3

  • Exposes createAiSdkUiMessageStream for developers to use.

    0.8.5release notes

  • Resource wrappers are added for MCP.

    0.8.0release notes

  • Session IDs are added for streamable MCP sessions.

    0.8.0release notes

Behavior and default changes 4

  • The default reasoning effort was updated for newer models.

    0.8.2release notes

  • Empty computer safety checks are omitted on replay.

    0.8.1release notes

  • Realtime response creation is deferred until the previous turn finishes.

    0.8.1release notes

  • The default realtime model is now gpt-realtime-1.5.

    0.8.0release notes

Fixes and other changes 9

  • Compacted Responses user messages are normalized before they are stored.

    0.8.4release notes

  • Discriminated union tool schemas are restored.

    0.8.4release notes

  • Nested audio configuration is preserved.

    0.8.4release notes

  • Trace provider shutdown cleanup is deduplicated.

    0.8.4release notes

  • External web access is now forwarded for web search tools.

    0.8.2release notes

  • Ignored handoffs are hidden without breaking managed continuations.

    0.8.1release notes

  • Reasoning and approval placeholders are stripped from handoff filters.

    0.8.0release notes

  • Issues with MCP server wrappers are resolved.

    0.8.0release notes

  • Segmented assistant output is recovered in agent tools and finalization.

    0.8.0release notes

@openai/agents 0.74 changes

New APIs and options 2

  • Adds helpers to narrow OpenAI raw model stream events.

    0.7.1release notes

  • 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.

    0.7.0release notes

Fixes and other changes 2

  • Orphan hosted shell calls are no longer replayed across turns.

    0.7.2release notes

  • Orphan hosted shell calls are pruned from public history.

    0.7.2release notes

@openai/agents 0.68 changes

Breaking changes 2

  • Import the aisdk() helper from this subpath.

    0.6.0release notes

  • The deprecated top-level AI SDK exports have been removed, allowing use of the extensions package without AI SDK modules.

    0.6.0release notes

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.

    0.6.0release notes

  • The Agents SDK supports the tool search tool, including namespaces.

    0.6.0release notes

Fixes and other changes 4

  • Canonical chat completions providerData fields are preserved.

    0.6.0release notes

  • GA computer tools can be used without display metadata.

    0.6.0release notes

  • MCP image mimeType is preserved in tool outputs.

    0.6.0release notes

  • Custom client tool_search runtime tools are rehydrated when resuming.

    0.6.0release notes

@openai/agents 0.59 changes

Security 1

New APIs and options 5

  • Approvals can now use custom rejection messages.

    0.5.4release notes

  • Run results expose agent tool invocation metadata, allowing developers to inspect tool invocation details.

    0.5.3release notes

  • Adds an output text transform hook for AI SDK provider compatibility.

    0.5.3release notes

  • Opts all OpenAI Responses model agent calls into WebSocket mode; the default behavior is unchanged.

    0.5.0release notes

  • Enables a reusable WebSocket connection for Responses API calls.

    0.5.0release notes

Fixes and other changes 3

  • The missing type field is handled for non-nullable enums.

    0.5.2release notes

  • OpenAI Responses request IDs are preserved in raw responses.

    0.5.2release notes

  • The OpenAI realtime model type list was synced.

    0.5.1release notes

@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".

    0.4.0release notes

  • 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.

    0.4.0release notes

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.

    0.4.2release notes

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.

    0.4.13release notes

  • Function tools can now have timeouts.

    0.4.10release notes

  • The shell tool now supports a container-based hosted runtime, configured through environment.

    0.4.7release notes

  • The hosted shell runtime now supports native skills, including skill references configured with a skill ID and version.

    0.4.7release notes

  • Adds Codex run-context thread reuse and a same-thread workflow for extension authors.

    0.4.6release notes

  • Adds configurable error messages for approval-rejection tools.

    0.4.5release notes

  • Adds approvals and a run context argument for the computer tool.

    0.4.5release notes

  • Adds errorFunction support for MCP servers.

    0.4.5release notes

  • Adds meta resolver support for MCP tools.

    0.4.5release notes

  • Adds an onSafetyCheck hook for computer safety checks.

    0.4.5release notes

  • Adds structured input builders for agent tools.

    0.4.5release notes

  • Enables server routes in React/Next.js apps to stream data that can be consumed by useChat on the frontend.

    0.4.2release notes

  • Adds maxTurns error handlers with runData snapshots.

    0.4.2release notes

  • A lifecycle helper provides a convenient way to manage multiple MCP server instances.

    0.4.2release notes

Behavior and default changes 4

  • Passes run context into applyPatch editor operations, allowing those operations to use the run context.

    0.4.12release notes

  • Uses streamed chunk IDs in Chat Completions traces and output items.

    0.4.12release notes

  • Normalizes response message content metadata into providerData.

    0.4.12release notes

  • 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.

    0.4.0release notes

Fixes and other changes 30

  • Function tool calls now respect tracingDisabled, allowing tracing to be disabled for those calls.

    0.4.15release notes

  • Preserves nested agent-tool approval attribution when restoring.

    0.4.14release notes

  • Awaits parallel input guardrails before resolving a turn in non-streaming runs.

    0.4.13release notes

  • Persists the reasoning item ID policy across resumes and clarifies its interaction with filters.

    0.4.13release notes

  • Rehydrates RunState interruption items when resuming.

    0.4.13release notes

  • Avoids a browser startup crash in Bun when shim modules are temporarily unresolved.

    0.4.12release notes

  • Normalizes data URL images for AI SDK providers.

    0.4.12release notes

  • Propagates output guardrail context types to OutputGuardrailFunctionArgs.

    0.4.12release notes

  • Preserves the pre-tool assistant transcript in realtime agent_end events.

    0.4.12release notes

  • Prevents duplicate realtime session events after reconnect.

    0.4.12release notes

  • Respects toolChoice none overrides after tool lifecycle updates.

    0.4.12release notes

  • Emits tracing function spans for shell, apply_patch, and computer tools.

    0.4.11release notes

  • Normalizes realtime turnDetection modelVersion to model_version.

    0.4.11release notes

  • Avoids internal dist type imports in the exporter, reducing reliance on internal package paths.

    0.4.9release notes

  • Propagates trace metadata to spans for processors.

    0.4.9release notes

  • connect() waits for the session.updated acknowledgment before resolving.

    0.4.8release notes

  • Generation usage metadata is preserved via usage.details.

    0.4.8release notes

  • AI SDK cacheRead usage is now mapped to cached_tokens.

    0.4.7release notes

  • Legacy ShellTool typing is preserved.

    0.4.7release notes

  • Strict shell pending statuses are preserved.

    0.4.7release notes

  • Named tool_choice is omitted when the prompt supplies tools.

    0.4.7release notes

  • Populates streamed chat completion choices in generation traces.

    0.4.5release notes

  • Preserves Zod descriptions in JSON schema output.

    0.4.5release notes

  • Fixes handling of the traceIncludeSensitiveData option.

    0.4.5release notes

  • Nested agent tool approvals now resume after interruptions.

    0.4.4release notes

  • Abort listeners are detached after streaming completion.

    0.4.3release notes

  • Resuming run state now prefers the run tracing config.

    0.4.2release notes

  • Keeps compaction auto mode aligned with store=false.

    0.4.1release notes

  • Handles the legacy fileId fallback.

    0.4.1release notes

  • Handles invalid JSON in tool call arguments gracefully.

    0.4.1release notes

@openai/agents 0.363 changes

Security 3

  • Conversation items are sanitized for non-OpenAI models in HITL flows.

    0.3.8release notes

  • The payload is limited to documented fields.

    0.3.8release notes

  • A security patch was applied for the Next.js RCE vulnerability CVE-2025-66478.

    0.3.5release notes

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.

    0.3.9release notes

  • Adds ai-sdk v3 support and improves compatibility with other providers.

    0.3.8release notes

  • Tracing API keys can now be supplied per run.

    0.3.8release notes

  • Exposed as a type in generated declarations.

    0.3.8release notes

  • The TypeScript SDK adds guardrails for tool inputs and outputs.

    0.3.8release notes

  • Exposed from the top-level exports so wrappers can import the tool type.

    0.3.8release notes

  • Adds support for gpt-image-1-mini and gpt-image-1.5.

    0.3.6release notes

  • Adds a session feature wired to responses.compact.

    0.3.6release notes

  • Anthropic extended thinking support was added.

    0.3.5release notes

  • Chat completions now support input_file when possible.

    0.3.5release notes

  • An agent used as a tool can now use on(key) handlers.

    0.3.5release notes

  • An agent used as a tool can now use onStream handlers.

    0.3.5release notes

  • OpenAIConversationsSessionOptions is now exported.

    0.3.5release notes

  • SpanData types are now exported.

    0.3.5release notes

  • Token usage is tracked while streaming responses for OpenAI models.

    0.3.5release notes

  • The agent_start event hooks now accept an optional turnInput.

    0.3.5release notes

  • The input audio transcription completed event now includes a usage field.

    0.3.5release notes

  • Caching for MCP list tools is customizable.

    0.3.4release notes

  • Output guardrails can access tool call items.

    0.3.4release notes

  • ToolOptions is now exported from the agents-core package.

    0.3.4release notes

  • Adds the prompt_cache_retention option to ModelSettings.

    0.3.3release notes

  • Adds the runInParallel option to input guardrail initialization.

    0.3.3release notes

  • Adds a list of per-request usage data to Usage.

    0.3.3release notes

  • Adds reasoning.effort: none for gpt-5.1.

    0.3.2release notes

  • Adds apply patch functionality for developers using the Agents SDK.

    0.3.1release notes

  • Adds shell functionality for developers using the Agents SDK.

    0.3.1release notes

  • Adds a memory feature using the sessions store.

    0.3.0release notes

  • Adds SIP support in the realtime agent runner.

    0.3.0release notes

Behavior and default changes 1

  • Tool parsing failures expose the raw input and validation error.

    0.3.8release notes

Fixes and other changes 31

  • Subclass error names are now set, so errors report the subclass name.

    0.3.9release notes

  • Fixes tool calls when content is present and adds content: null when tool calls are present.

    0.3.8release notes

  • Null values for noise_reduction are ignored in realtime.

    0.3.8release notes

  • Chat Completions calls skip response_format when its value is "text".

    0.3.8release notes

  • Run resumption and the tool execution pipeline are stabilized.

    0.3.8release notes

  • Cancellation aborts promptly and resolves completion when cancelled.

    0.3.8release notes

  • Null values for transcription are ignored in realtime.

    0.3.8release notes

  • Null values are ignored and falsy turn detection configuration values are preserved.

    0.3.8release notes

  • MCP servers now use clientSessionTimeoutSeconds.

    0.3.6release notesrelease notes

  • Enables creating and disposing Computer per agent run.

    0.3.6release notes

  • Preserves completions by narrowing string branches in literal unions.

    0.3.6release notes

  • Fixes previousSpan being set incorrectly in tracing.

    0.3.6release notes

  • Adds usage data integration to the responses.compact-wired session feature.

    0.3.6release notes

  • The agent_tool_end event is now emitted when function tools throw errors.

    0.3.5release notes

  • AI SDK error details in tracing were improved.

    0.3.5release notes

  • providerData is now propagated for function_calls in the chat completions converter.

    0.3.5release notes

  • Duplicate function_call items are prevented in session history after resuming from interruption.

    0.3.5release notes

  • A string in the data field of an input_image message item now works with providers that previously did not support it.

    0.3.4release notes

  • MCPServerSSE now forwards the fetch parameter to SSEClientTransport.

    0.3.4release notes

  • Leading {} is stripped from streaming tool call arguments for Bedrock.

    0.3.4release notes

  • Gemini thought_signature is preserved in multi-turn tool calls.

    0.3.4release notes

  • Provides a developer-friendly message for output type errors.

    0.3.3release notes

  • Fixes failures to run MCP servers when deserializing run state data.

    0.3.3release notes

  • Fixes a transcript removal issue when interrupted.

    0.3.3release notes

  • Fixes the top-level voice parameter in realtime session configuration so it works.

    0.3.3release notes

  • Omits the tools parameter when a prompt ID is set but the agent has no tools.

    0.3.2release notes

  • Adds usage data from the stream to the response for Chat Completions.

    0.3.2release notes

  • Listens to peerConnection state to detect disconnects.

    0.3.0release notes

  • Fixes non-OpenAI models with OpenRouter sending an empty string when calling tools.

    0.3.0release notes

  • Fixes a type issue with realtime agent handoffs.

    0.3.0release notes

  • Fixes a bug where tracingDisabled in realtime config does not work.

    0.3.0release notes

@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.

    0.2.1release notes

New APIs and options 1

  • Tools can return image and file data to an Agent in OpenAI's standard format.

    0.2.0release notes

Fixes and other changes 1

  • Fixes a handoff creation error when using onHandoff without inputType.

    0.2.0release notes

@openai/agents 0.16 changes

Security 1

  • Fixes hostedMcpTool failing to send the authorization parameter to the Responses API.

    0.1.11release notes

Fixes and other changes 5

  • Invalid model settings when a prompt is set in Agent were fixed.

    0.1.10release notes

  • Compatibility with tool calls was improved for conversationId and previousResponseId.

    0.1.10release notes

  • An explicit model override for prompt was enabled.

    0.1.10release notes

  • Usage details validation in realtime events was resolved.

    0.1.10release notes

  • In async mode, traces now wait for streaming to complete before ending.

    0.1.10release notes