unstale

pypi / openai-agents

openai-agents

What changed in openai-agents 0.4 to 0.25, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

55 breaking51 security1 deprecations136 new APIs and options1 performance74 behavior and defaults3 tooling461 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.2548 changes

Breaking changes 8

  • The Daytona extra now requires daytona>=0.226.1,<1.

    0.25.0release notes

  • GPT-6 Chat Completions tool requests now default to non-reasoning.

    0.25.0release notes

  • Native Chat Completions tool requests default to non-reasoning mode when no effort is supplied.

    0.25.0release notes

  • The minimum MCP dependency version is raised for Pydantic and OAuth compatibility.

    0.25.0release notes

  • The MCP dependency requirement is now >=1.30.0,<3,!=2.0.*,!=2.1.*; incompatible dependency pins may need upgrading.

    0.25.0release notes

  • The default model changes from gpt-4.1 to gpt-6-luna; set model="gpt-4.1" to retain the previous choice.

    0.25.0release notes

  • The Runloop sandbox provider has been removed.

    0.25.0release notes

  • The beta Runloop provider, its package extra, and its exports are removed. Runloop users must migrate to another supported provider or remain on 0.24.0.

    0.25.0release notes

New APIs and options 6

  • Use context_deserializer to restore application context from serialized Pydantic context snapshots.

    0.25.0release notes

  • Use context_override to restore application context when resuming from serialized Pydantic context snapshots.

    0.25.0release notes

  • Use context_serializer to exclude or transform process-local fields when serializing Pydantic context snapshots.

    0.25.0release notes

  • Runner handoffs can opt into recovery with failure_error_function; omitting it preserves exception propagation.

    0.25.0release notes

  • Handoff error recovery can now be enabled opt-in.

    0.25.0release notes

  • Utilities are now exposed for third-party session adapters.

    0.25.0release notes

Behavior and default changes 6

  • Agent model settings follow the selected model more closely.

    0.25.0release notes

  • MCP v2 Streamable HTTP supports concurrent requests; MCP v1 retains serialized requests.

    0.25.0release notes

  • Model defaults now align with the TS SDK.

    0.25.0release notes

  • Snapshots now include default values and in-place edits using JSON serialization; process-local fields may require an explicit serializer.

    0.25.0release notes

  • RunState writes checkpoint schema 1.22 to track approvals owned by nested agent tools, while continuing to read schema 1.21.

    0.25.0release notes

  • Session compaction now uses gpt-6-luna by default.

    0.25.0release notes

Fixes and other changes 28

  • Explicit interruption is now honored when automatic VAD is enabled.

    0.25.0release notes

  • Checkpointed assistant text is now restored in Chat Completions.

    0.25.0release notes

  • Wire aliases are now preserved when reading Conversations session history.

    0.25.0release notes

  • ID-less assistant output is now replayed in Chat Completions sessions.

    0.25.0release notes

  • Completed input guardrails are reported when a tripwire fires.

    0.25.0release notes

  • Native tool queues now stop during function failure cleanup.

    0.25.0release notes

  • Nested approval checkpoints can resume with output guardrails.

    0.25.0release notes

  • Nested handoff record boundaries are now preserved.

    0.25.0release notes

  • Completed output guardrails are reported when a tripwire fires.

    0.25.0release notes

  • Pending async calls are now preserved in committed sessions.

    0.25.0release notes

  • Pending input history is now preserved across streamed retries.

    0.25.0release notes

  • Implicit settings now align with provider-selected models.

    0.25.0release notes

  • Pydantic run context snapshots are now preserved.

    0.25.0release notes

  • Failed and incomplete Responses calls now retain provider-reported token usage.

    0.25.0release notes

  • Wire aliases are now preserved when replaying Responses items.

    0.25.0release notes

  • Responses tool choice is fixed for functions named after hosted tools.

    0.25.0release notes

  • Restored handoff history summaries are flattened.

    0.25.0release notes

  • Missing function approval owners are now reported during RunState restore.

    0.25.0release notes

  • Session replay is bounded.

    0.25.0release notes

  • Appending to SQLAlchemy sessions now preserves append order.

    0.25.0release notes

  • Concurrent Streamable HTTP requests are now allowed on MCP v2.

    0.25.0release notes

  • Streamed model attempts are skipped after an input guardrail trips.

    0.25.0release notes

  • Empty structured shell results are now preserved.

    0.25.0release notes

  • Structured tool input is now preserved in agent lifecycle hooks.

    0.25.0release notes

  • The default tool error message no longer includes retry advice.

    0.25.0release notes

  • Tool guardrail results are retained after approval and resume.

    0.25.0release notes

  • Usage is now preserved from failed and incomplete Responses calls.

    0.25.0release notes

  • The dependency constraints now allow websockets 17.

    0.25.0release notes

openai-agents 0.2419 changes

Breaking changes 3

  • macOS sandbox commands deny Launch Services requests, preventing local commands from launching host applications through Launch Services.

    0.24.0release notes

  • Transactional append, clear, and replacement require a supported backend; Redis Cluster reads and pops remain available.

    0.24.0release notes

  • New snapshots use schema 1.21, and some legacy graphs with same-name non-root agents are rejected rather than risk incorrect agent ownership; finish affected tasks with their original SDK and agent code.

    0.24.0release notes

Security 1

  • Protected mount failures produce fresh redacted errors while retaining source arguments and linked exceptions and detaching the caught source traceback.

    0.24.0release notes

New APIs and options 2

  • The formatter arguments include an optional error field for tool exceptions.

    0.24.0release notes

  • The run-wide tool error formatter can receive the new tool_exception category for eligible decorated function failures; explicit per-tool handlers retain precedence.

    0.24.0release notes

Behavior and default changes 5

  • Automatic compaction waits while approvals are pending, avoiding compaction before approval history is ready.

    0.24.0release notes

  • Unserializable dataclass run contexts are omitted with a warning; use a serializer/deserializer or context_override, or strict_context=True to reject omission.

    0.24.0release notes

  • Deferred approval history is persisted across resumes and waits for the output guardrail boundary.

    0.24.0release notes

  • Converted MCP tools expose copied optional mcp_annotations metadata as discovery hints; it does not authorize execution or enter model schemas.

    0.24.0release notes

  • Writes are batched in requests of at most 20 items to respect the API limit; multi-request writes can commit partially, so reconcile remote history before retrying.

    0.24.0release notes

Fixes and other changes 8

  • Approved tools resumed after approval are traced inside the resumed agent span.

    0.24.0release notes

  • Accepted call/output pairs survive sibling or callback failures after input and tool-output guardrails permit publication, allowing supported recovery without replaying completed tools.

    0.24.0release notes

  • Unhandled computer safety checks now produce a warning.

    0.24.0release notes

  • Function-call aliases are preserved when restoring RunState.

    0.24.0release notes

  • Completed stop tools can reject added pending input when ending a resumed run; finish that run before starting a new user turn.

    0.24.0release notes

  • Standalone Redis replacement is atomic; coordinate other writers because atomic replacement does not prevent stale compaction across processes.

    0.24.0release notes

  • The tracing opt-out is honored inside caller-owned traces, including resumed tools and streamed cleanup.

    0.24.0release notes

  • Invalid sandbox tool arguments return recoverable tool errors without swallowing provider failures.

    0.24.0release notes

openai-agents 0.2368 changes

Breaking changes 4

  • Host sources in dictionary sandbox manifests are rejected.

    0.23.0release notes

  • Session history now requires encrypted envelopes.

    0.23.0release notes

  • Tool arguments that would be silently discarded as kwargs are now rejected.

    0.23.0release notes

  • Blank branch names are rejected for SQLite sessions.

    0.23.0release notes

Security 8

  • Streaming callback backlogs are bounded, and callbacks are validated before execution.

    0.23.0release notes

  • Host PATH read grants are limited to the child environment.

    0.23.0release notes

  • Exception details are redacted from Realtime tool error events.

    0.23.0release notes

  • Realtime tool output guardrails are now enforced.

    0.23.0release notes

  • Incoming WebSocket message size is bounded by default.

    0.23.0release notes

  • Grants are enforced during recursive removal.

    0.23.0release notes

  • Model metadata now respects the sensitive trace capture setting.

    0.23.0release notes

  • Special files are rejected in shared UnixLocal file I/O.

    0.23.0release notes

New APIs and options 6

  • An optional item budget is available for compaction rollback.

    0.23.0release notes

  • Docker removal protection can now be opted into.

    0.23.0release notes

  • An encrypted history scan budget is available as an opt-in.

    0.23.0release notes

  • MCP listing page limits are now configurable.

    0.23.0release notes

  • The number of turns used for memory consolidation can now be configured.

    0.23.0release notes

  • Bounded workspace outbox reads are available as an opt-in.

    0.23.0release notes

Behavior and default changes 4

  • Verbose connector output is summarized, reducing the amount of output passed through.

    0.23.0release notes

  • The STT session logging header is no longer forced.

    0.23.0release notes

  • Reasoning is omitted from default trace exports.

    0.23.0release notes

  • gpt-transcribe is now the default voice STT model.

    0.23.0release notes

Fixes and other changes 46

  • Literal Unicode content now matches correctly.

    0.23.0release notes

  • The agent_end event names the agent whose turn ended.

    0.23.0release notes

  • Tools are resolved after agent start hooks run.

    0.23.0release notes

  • Filtered history is preserved during automatic compaction.

    0.23.0release notes

  • Built-in shell and apply_patch tools are selected by their own type.

    0.23.0release notes

  • Premature end-of-file in Chat Completions streams is rejected.

    0.23.0release notes

  • Clearing a session now resets the compaction response chain.

    0.23.0release notes

  • Closed parent constraints are preserved in singleton allOf schemas.

    0.23.0release notes

  • Codex command spans now honor the run tracing policy.

    0.23.0release notes

  • Namespaced compaction model names are accepted.

    0.23.0release notes

  • Output-only metadata is stripped from compaction replay.

    0.23.0release notes

  • Default tool failure details are redacted.

    0.23.0release notes

  • Ambiguous canonical Docker removal paths are rejected.

    0.23.0release notes

  • Encrypted session visibility is refreshed before compaction.

    0.23.0release notes

  • Encrypted SQLite history is preserved when pops use the wrong key.

    0.23.0release notes

  • Exporter overrides are preserved during shutdown.

    0.23.0release notes

  • Annotated constraints on function tools are preserved.

    0.23.0release notes

  • Function tool approvals are scoped to their owning agent.

    0.23.0release notes

  • Agent tools now preserve guarded final outputs.

    0.23.0release notes

  • Host grants are validated against normalized workspace roots.

    0.23.0release notes

  • Resumed MCP calls are bound to their original recipients.

    0.23.0release notes

  • The traceable dictionary now serializes only traced fields.

    0.23.0release notes

  • MongoDB session identifiers are now validated.

    0.23.0release notes

  • Nested agent tool state is isolated across fresh runs and restored against the tool's own agent.

    0.23.0release notes

  • Nullable token counts are normalized in Chat Completions and remaining provider paths.

    0.23.0release notes

  • The pipeline tracing opt-out is honored inside caller traces.

    0.23.0release notes

  • Session keys are validated before clearing.

    0.23.0release notes

  • Terminal controls are escaped in result diagnostics.

    0.23.0release notes

  • Sandbox apply_patch approval scope is checked.

    0.23.0release notes

  • Fresh streamed handoffs are recovered after session append failures, preventing a failed append from losing the handoff.

    0.23.0release notes

  • Handoffs are recovered after compaction is cancelled.

    0.23.0release notes

  • Previous stream event aliases are discarded when a model times out.

    0.23.0release notes

  • The session remains usable after a 5xx response.

    0.23.0release notes

  • Streamed transcription is finished when input ends.

    0.23.0release notes

  • Exception tracebacks from streaming tasks are redacted.

    0.23.0release notes

  • Persistence now preserves structured guardrail diagnostics and agent output.

    0.23.0release notes

  • On Python 3.10, _wait_for_event raises the builtin TimeoutError.

    0.23.0release notes

  • Tool identity is preserved during asynchronous enablement.

    0.23.0release notes

  • Callback results are now validated.

    0.23.0release notes

  • An item with non-JSON-serializable values no longer causes the export batch to be discarded.

    0.23.0release notes

  • Rate-limited trace exports are retried.

    0.23.0release notes

  • Transcription iterators are finished when sessions close during setup.

    0.23.0release notes

  • UnixLocal snapshots preserve hardlinks and normalize special files and symlinks.

    0.23.0release notes

  • Legacy positional configuration arguments continue to be accepted.

    0.23.0release notes

  • Pre-request WebSocket handshake failures are retried.

    0.23.0release notes

  • Nested paths and symlink targets are preserved in workspace snapshots.

    0.23.0release notes

openai-agents 0.2256 changes

Breaking changes 8

  • Chat Completions now reject unpaired function outputs.

    0.22.1release notes

  • Options ignored when an explicit client is provided are now rejected.

    0.22.1release notes

  • Runs cannot resume when accepted terminal output was not persisted.

    0.22.1release notes

  • Empty tool arguments now fail closed instead of being accepted.

    0.22.1release notes

  • Truncated empty completions now raise ModelBehaviorError.

    0.22.1release notes

  • Sandbox apply_patch operations now require update hunks.

    0.22.0release notes

  • Non-streaming Responses with terminal status failed or incomplete now raise ModelBehaviorError.

    0.22.0release notes

  • When an explicit client is provided, conflicting provider options such as organization or project are rejected; applications must set those values on the AsyncOpenAI client.

    0.22.0release notes

Security 6

  • Prevent symlink races in the UnixLocal file API.

    0.22.2release notes

  • MCP tools can now use server-wide guardrails.

    0.22.1release notes

  • STT prompts are redacted from traces.

    0.22.1release notes

  • TTS instructions are redacted from speech spans.

    0.22.1release notes

  • Model-error span recording now respects model-data logging redaction.

    0.22.0release notes

  • Terminal function-tool output rejected by agent output guardrails is redacted from replayable and persisted SDK state.

    0.22.0release notes

New APIs and options 6

  • Support current image generation tool options.

    0.22.2release notes

  • Custom OpenAI TTS voice IDs are supported.

    0.22.1release notes

  • Docker sandbox containers can now be assigned labels.

    0.22.1release notes

  • Customize the messages returned when output guardrails block a response.

    0.22.1release notes

  • Streamed transcription options are now exposed to callers.

    0.22.1release notes

  • Sandbox environments can now configure Unix-local environment isolation.

    0.22.1release notes

Behavior and default changes 9

  • Tool usage tracking now includes shell and apply_patch calls.

    0.22.3release notes

  • Tool output is recorded on approval-gated function spans.

    0.22.1release notes

  • Model providers created by Runner are now closed.

    0.22.1release notes

  • OpenAI provider options now take precedence over default clients.

    0.22.1release notes

  • Voice workflows now support context in the single-agent workflow.

    0.22.1release notes

  • Tool outputs now accept JSON Schema type arrays of object.

    0.22.1release notes

  • Web search tools now support image results.

    0.22.1release notes

  • Agents registered through handoff(agent) are expanded in generated graphs.

    0.22.0release notes

  • Usage accounting is isolated between independent RunState checkpoints while nested-agent aggregation is preserved.

    0.22.0release notes

Fixes and other changes 27

  • delete_branch preserves exact IDs.

    0.22.3release notes

  • Concurrent asynchronous SQLite startup is handled.

    0.22.3release notes

  • Command paths remain POSIX when running on a Windows host.

    0.22.3release notes

  • Conditional approvals are aligned with validated tool arguments.

    0.22.3release notes

  • A missing OPENAI_API_KEY is no longer cached.

    0.22.3release notes

  • Tool-not-found output is delivered when resuming server-managed runs.

    0.22.3release notes

  • The session limit is no longer forwarded as the Conversations page size.

    0.22.3release notes

  • Subprocesses are reaped when a stream closes early.

    0.22.3release notes

  • Reset the compaction response chain after pop.

    0.22.2release notes

  • The usage store is skipped when the branch has no turn.

    0.22.1release notes

  • extra_body is now nested correctly on the any-llm chat path.

    0.22.1release notes

  • The value annotation applies to each keyword value, and keys colliding with named tool parameters are rejected.

    0.22.1release notes

  • Managed MCP servers are deduplicated, and active servers are cleared after cleanup.

    0.22.1release notes

  • In streaming, reaching max_turns no longer overwrites a tripped input guardrail exception.

    0.22.1release notes

  • Cached MCP tools are deep-copied before being returned.

    0.22.1release notes

  • Response IDs are preserved in redacted traces.

    0.22.1release notes

  • Resumed handoffs are recovered after session append failures.

    0.22.1release notes

  • Failed resumed Session writes are recovered before model calls and renewed interruptions.

    0.22.1release notes

  • Tool guardrail results are persisted when a session resumes.

    0.22.1release notes

  • Concurrent writes are preserved during compaction.

    0.22.1release notes

  • Session transformations are preserved during generation tracking.

    0.22.1release notes

  • The working directory is preserved for shell command lists.

    0.22.1release notes

  • Streamed STT forwards language and prompt and honors client configuration.

    0.22.1release notes

  • Every NumPy spelling of a supported TTS dtype is accepted.

    0.22.1release notes

  • Unbounded UnixLocal workspace I/O no longer runs on the event loop.

    0.22.1release notes

  • Variadic tool arguments preserve tuple annotations, reject fixed-length tuple annotations, and retain Field constraints.

    0.22.1release notes

  • Processors are cleaned up after tracing is disabled.

    0.22.0release notes

openai-agents 0.2142 changes

Breaking changes 2

  • Stops handing the tools cache to callers.

    0.21.0release notes

  • Updates OpenAI provider compatibility to openai>=3.0.0,<4, including HTTPX2-aware request, response, transport, and exception handling.

    0.21.0release notes

Security 3

  • Validates raster content passed to view_image.

    0.21.1release notes

  • Protects manager lifecycle state snapshots and isolates lifecycle results.

    0.21.0release notes

  • Redacts tool output values from output-type validation errors to avoid exposing sensitive output.

    0.21.0release notes

New APIs and options 5

Tooling 3

  • Adds provider-neutral utilities for deterministic Realtime workflow tests without provider requests.

    0.21.0release notes

  • Adds provider-neutral utilities for deterministic Agent and Sandbox workflow tests without provider requests.

    0.21.0release notes

  • Adds provider-neutral utilities for deterministic Voice workflow tests without provider requests.

    0.21.0release notes

Fixes and other changes 29

  • Normalizes apply_patch paths as POSIX.

    0.21.1release notes

  • Honors exact call approval decisions.

    0.21.1release notes

  • Fixes reasoning replay for Chat Completions.

    0.21.1release notes

  • Includes compaction usage in run totals.

    0.21.1release notes

  • Keeps model paths POSIX-normalized.

    0.21.1release notes

  • Closes all MultiProvider children after failures.

    0.21.1release notes

  • Correctly truncates audio when elapsed time is zero.

    0.21.1release notes

  • Ends iteration after a clean server close.

    0.21.1release notes

  • Counts Responses requests that do not include usage.

    0.21.1release notes

  • Prevents conflicts with advanced SQLite structure tables.

    0.21.1release notes

  • Rejects partially matched stacked anchors.

    0.21.1release notes

  • Gates AnyLLM parallel tool calls on converted tools.

    0.21.0release notes

  • Rejects non-positive audio channel counts.

    0.21.0release notes

  • Rejects non-positive audio frame rates.

    0.21.0release notes

  • Handles non-finite audio rates in Realtime.

    0.21.0release notes

  • Stops buffering audio when audio tracing is disabled.

    0.21.0release notes

  • Handles zero conversation history limits.

    0.21.0release notes

  • Allows managed_secrets to reference existing Runloop secrets.

    0.21.0release notes

  • Corrects max-turn handler session semantics.

    0.21.0release notes

  • Closes the model stream when a streamed turn ends in a terminal failure.

    0.21.0release notes

  • Rejects incomplete multichannel audio frames.

    0.21.0release notes

  • Resumes approvals for recursive agent tool calls.

    0.21.0release notes

  • Aligns parallel tool calls with converted tools.

    0.21.0release notes

  • Preserves resume argument ordering.

    0.21.0release notes

  • Isolates tool decisions in RunState checkpoints.

    0.21.0release notes

  • Interruption snapshots are detached and isolated so changes to snapshots do not affect RunState results.

    0.21.0release notes

  • Exposes the scripted sandbox session type.

    0.21.0release notes

  • Honors extra path grants when using view_image.

    0.21.0release notes

  • Honors WAV sample width.

    0.21.0release notes

openai-agents 0.2016 changes

Breaking changes 4

  • Custom MCP HTTP authentication and client factories must use HTTP types owned by the installed MCP major version, or pin mcp<2.

    0.20.0release notes

  • Applications with customized local MCP HTTP transports can migrate to httpx2 or pin mcp<2; custom authentication and client factories must use HTTP types owned by the installed MCP major version.

    0.20.0release notes

  • Schemas that exceed safe recursion depth are rejected.

    0.20.0release notes

  • Unsafe strict-schema ref siblings are rejected.

    0.20.0release notes

Security 3

  • JSON validation errors are redacted.

    0.20.0release notes

  • Mount validation adds explicit credential-exposure acknowledgements and preserves redacted error contracts without serializing credential authority.

    0.20.0release notes

  • Tool approval is now honored on resume when Runner.run is given a context, and approvals are bound to concrete invocations.

    0.20.0release notes

New APIs and options 2

  • Stages durable user input before a resumed model call, with guardrail, persistence, and serialization support.

    0.20.0release notes

  • Applications can approve unsafe replays.

    0.20.0release notes

Behavior and default changes 5

  • Custom sessions now receive run context.

    0.20.0release notes

  • The implicit default model is now gpt-5.6-luna; explicit models, run-level overrides, and OPENAI_DEFAULT_MODEL still take precedence.

    0.20.0release notes

  • Realtime input transcription supports GA transcription settings for gpt-live-transcribe, gpt-transcribe, and gpt-realtime-whisper.

    0.20.0release notes

  • Local MCP connections support MCP Python SDK v1 and v2 across stdio, SSE, and Streamable HTTP transports.

    0.20.0release notes

  • Raw usage payloads are preserved.

    0.20.0release notes

Fixes and other changes 2

  • The Chat Completions path omits parallel_tool_calls when there are no tools.

    0.20.0release notes

  • TTSModelSettings.speed is now forwarded to the OpenAI speech API.

    0.20.0release notes

openai-agents 0.1996 changes

Breaking changes 3

  • Handoff calls are no longer emitted as streamed tool_called events.

    0.19.3release notes

  • Rejects unsupported streamed speech-to-text audio data types.

    0.19.0release notes

  • Rejects empty additionalProperties mappings in strict schemas.

    0.19.0release notes

Security 9

  • Sandbox token output budgets are enforced.

    0.19.4release notes

  • Default snapshot path resolution is hardened.

    0.19.3release notes

  • Output guardrails are applied to realtime text deltas.

    0.19.3release notes

  • MCP prompt, resource, and cleanup transport errors are redacted, including nested cleanup errors.

    0.19.2release notes

  • URL credentials are redacted from SDK errors, tracing, and tool metadata.

    0.19.2release notes

  • Blaxel unmount paths are redacted in logging.

    0.19.1release notes

  • Streamed models are canceled when input guardrails fail.

    0.19.1release notes

  • Invalid callable approval arguments now fail closed.

    0.19.0release notes

  • Hardens diagnostic logging across runtime components to avoid exposing raw sensitive payloads while preserving useful debugging context.

    0.19.0release notes

New APIs and options 7

  • AnyLLM provider streams are released and completed runs are preserved.

    0.19.3release notes

  • Wrapped callables expose the original callable through wrapped.

    0.19.2release notes

  • Adds a public decorators module for tool and guardrail decorators.

    0.19.0release notes

  • Adds programmatic tool calling, letting supported OpenAI Responses models generate JavaScript to coordinate eligible tools, with streaming, guardrails, approvals, sessions, and RunState integration.

    0.19.0release notes

  • Programmatic tool calling supports per-tool allowed_callers.

    0.19.0release notes

  • Adds a shorter alias for the existing tool decorator.

    0.19.0release notes

  • Adds a Vercel cloud bucket mount strategy; mounted sessions exclude bucket contents from workspace persistence and do not support dynamic mount changes or session resume.

    0.19.0release notes

Behavior and default changes 7

  • AnyLLM Responses reasoning is sent as a mapping.

    0.19.3release notes

  • The max-turns handler output is now persisted to the session.

    0.19.3release notes

  • MCP tool and prompt listings are automatically paginated.

    0.19.3release notes

  • Streamed task spans use the run's own workflow name.

    0.19.3release notes

  • Path grants support native host paths.

    0.19.1release notes

  • Function tools now support async callable objects.

    0.19.0release notes

  • Configuration consistently accepts typed settings objects or dictionaries across agents, runs, models, sessions, sandboxes, and voice pipelines, and validates unknown settings.

    0.19.0release notes

Fixes and other changes 70

  • Empty add_items calls skip conversation creation.

    0.19.4release notes

  • Reused branch IDs are rejected when creating a branch.

    0.19.4release notes

  • Cached sandbox dependency factories use single-flight behavior.

    0.19.4release notes

  • Completed tool guardrail results are preserved.

    0.19.4release notes

  • Sibling work is cancelled after concurrent failures.

    0.19.4release notes

  • Failed realtime connection attempts are cleaned up.

    0.19.4release notes

  • Invalid tool argument errors are redacted.

    0.19.4release notes

  • MongoDBSession enforces its closed state.

    0.19.4release notes

  • Non-stream session saves are deferred until output guardrails.

    0.19.4release notes

  • Non-streaming agent span failures are marked.

    0.19.4release notes

  • Non-streaming content-filter refusals are surfaced.

    0.19.4release notes

  • Repeated history provenance is preserved.

    0.19.4release notes

  • Resolved status is honored before policy checks.

    0.19.4release notes

  • Streamable HTTP retry backoff is derived from backoffs taken.

    0.19.4release notes

  • Streamed provider thinking blocks are preserved.

    0.19.4release notes

  • After-turn cancellation is synchronized with event consumption.

    0.19.3release notes

  • Agent tool name collisions are now resolved consistently.

    0.19.3release notes

  • The move source is removed as the bound user.

    0.19.3release notes

  • Approved tool output is preserved when a streamed run resumes.

    0.19.3release notes

  • Pending thinking blocks are cleared when an assistant message is flushed.

    0.19.3release notes

  • AsyncSQLiteSession now enforces its closed state.

    0.19.3release notes

  • Calling clear_session before initialization no longer creates a remote conversation.

    0.19.3release notes

  • Falsey custom output extractors are honored for agents used as tools.

    0.19.3release notes

  • Delayed audio guardrail interruption is scoped.

    0.19.3release notes

  • Falsey handoff input filters are honored.

    0.19.3release notes

  • Input item order is preserved when duplicates are collapsed.

    0.19.3release notes

  • Interrupt truncation is clamped to the audio received.

    0.19.3release notes

  • Output guardrail results are reported when a tripwire aborts the run.

    0.19.3release notes

  • Model-call failures are recorded on the provider's own span.

    0.19.3release notes

  • An in-flight provider stream can finish closing after cancellation.

    0.19.3release notes

  • Tool name collisions are reconciled when a run resumes.

    0.19.3release notes

  • run_sync replaces a closed default event loop.

    0.19.3release notes

  • A failed SQLiteSession insert is rolled back.

    0.19.3release notes

  • Typeless strict object schemas are normalized.

    0.19.3release notes

  • STT event handling finishes after listener errors.

    0.19.3release notes

  • Thinking blocks are preserved for replay.

    0.19.3release notes

  • Tool calls and outputs retain their order when inputs are deduplicated.

    0.19.3release notes

  • Tool guardrail results are reported for streamed runs.

    0.19.3release notes

  • Committed tool session records are retained when a streamed output guardrail trips.

    0.19.3release notes

  • Trimmed schemas retain the trimmer's definition names and instance data.

    0.19.3release notes

  • Tasks are cleaned up when voice streams close early.

    0.19.3release notes

  • Explicit contracts for zero values are defined.

    0.19.3release notes

  • The audio dispatcher exits its loop when a stream task signals session_ended and blocks while idle.

    0.19.2release notes

  • Sandbox handling preserves tagged EnvValue subclasses.

    0.19.2release notes

  • Modal tar hydration rejects ephemeral paths.

    0.19.2release notes

  • Input guardrail results are reported when a tripwire aborts the run.

    0.19.2release notes

  • Voice iterator cancellation is propagated.

    0.19.2release notes

  • The provider stream is closed on exit, while completed streams are preserved if cleanup fails.

    0.19.2release notes

  • Failed MCP servers are cleaned up before reconnecting.

    0.19.2release notes

  • Realtime handling preserves raw server event payloads.

    0.19.2release notes

  • Redis and Dapr sessions enforce their closed state.

    0.19.2release notes

  • Positive limits count valid items across SQLAlchemy, MongoDB, AdvancedSQLiteSession, Redis, and Dapr sessions.

    0.19.2release notes

  • Tool parameters named like schema keywords are preserved.

    0.19.2release notes

  • Tracing export deadlines use a monotonic clock.

    0.19.2release notes

  • BatchTraceProcessor enforces max_batch_size during force_flush and shutdown.

    0.19.1release notes

  • A zero Blobfuse attribute cache timeout is preserved.

    0.19.1release notes

  • Falsey input builders are honored.

    0.19.1release notes

  • Falsey mapped providers are routed.

    0.19.1release notes

  • The parallel input-guardrail task is canceled when the model turn fails.

    0.19.1release notes

  • Realtime audio format diagnostics are redacted.

    0.19.1release notes

  • Sibling enablement checks are canceled on failure.

    0.19.1release notes

  • Positive limits count valid SQLite session items.

    0.19.1release notes

  • Empty streamed model input is allowed.

    0.19.1release notes

  • Streamed retries are counted when terminal usage is missing.

    0.19.1release notes

  • Improves compatibility with AnyLLM and LiteLLM providers.

    0.19.0release notes

  • Recognizes typed easy input messages in Chat Completions.

    0.19.0release notes

  • When top_logprobs is set, LiteLLM requests now also send logprobs=True.

    0.19.0release notes

  • Pre-response WebSocket server errors are retried.

    0.19.0release notesrelease notes

  • Preserves session history across model retries.

    0.19.0release notes

  • Voice handling now encodes streamed float32 audio as PCM16.

    0.19.0release notes

openai-agents 0.1831 changes

Security 3

New APIs and options 4

Performance 1

  • Accumulates streamed logprobs in place to avoid O(n^2) copies.

    0.18.1release notes

Behavior and default changes 3

  • Realtime sessions now track response usage in session context.

    0.18.3release notes

  • Adds GPT-5.6 model defaults, so developers can use the new defaults.

    0.18.1release notes

  • The default model for RealtimeAgents is now gpt-realtime-2.1.

    0.18.0release notes

Fixes and other changes 20

  • Sandbox setup avoids redundant creation of the E2B workspace root.

    0.18.3release notes

  • Parsing now handles Google docstrings that lack a blank line before a section.

    0.18.3release notes

  • Initialization of OpenAI conversation sessions is serialized.

    0.18.3release notes

  • Prepared-item identity is no longer reused when stale.

    0.18.3release notes

  • Conflicting provider arguments now raise UserError instead of triggering an assertion.

    0.18.3release notes

  • Computer provider instances are isolated across concurrent runs.

    0.18.3release notes

  • Strict JSON schema conversion now bounds $ref expansion.

    0.18.3release notes

  • Streamed session input is preserved across model retries.

    0.18.3release notes

  • Handoffs preserve user messages that contain history wrappers.

    0.18.3release notes

  • Content-filter refusals are surfaced instead of appearing as an empty turn.

    0.18.2release notes

  • Model-backed rollout interruptions are now serialized as dictionaries.

    0.18.2release notes

  • Callback errors are now enqueued synchronously.

    0.18.2release notes

  • Playback timing now uses a monotonic clock.

    0.18.2release notes

  • Browsing helpers now handle list content.

    0.18.1release notes

  • Supports cache-write usage across OpenAI Python versions.

    0.18.1release notes

  • Closes streams when execution exits early.

    0.18.1release notes

  • Sends logprobs=True when top_logprobs is set.

    0.18.1release notes

  • Preserves nested tool state during restoration.

    0.18.1release notes

  • Makes session cleanup deterministic.

    0.18.1release notes

  • Visualization handoff nodes keep their fillcolor by merging style attributes.

    0.18.0release notes

openai-agents 0.17101 changes

Breaking changes 3

  • Relative sandbox workspace roots are rejected.

    0.17.3release notes

  • Using input_type without on_handoff raises UserError.

    0.17.1release notes

  • LocalFile.src and LocalDir.src must stay within the materialization base_dir unless the source path is covered by Manifest.extra_path_grants.

    0.17.0release notes

Security 6

  • Realtime validation failure logs are redacted.

    0.17.8release notes

  • Adds guardrails for tool input before approval.

    0.17.6release notes

  • Applies the hardened HTTP client default to the MCP SSE transport.

    0.17.4release notes

  • Redacts invalid JSON payloads in ModelBehaviorError data.

    0.17.4release notes

  • Mountpoint credentials are kept out of sandbox commands.

    0.17.3release notes

  • Realtime tool approvals are scoped by qualified key.

    0.17.1release notes

New APIs and options 6

  • Adds a recovery handler for invalid final output.

    0.17.8release notes

  • Adds buffered streaming for Chat Completions tool calls.

    0.17.7release notes

  • Websocket max_size limit is configurable, allowing developers to set the limit.

    0.17.7release notes

  • Adds SDK-only custom data for tool outputs, with a strict JSON-compatible contract.

    0.17.6release notes

  • Realtime supports custom voice objects.

    0.17.4release notes

  • Includes the output guardrail count in run error details.

    0.17.3release notes

Behavior and default changes 2

  • Response-feature validation is opt-in; unsupported server state, reusable prompts, custom tool calls, and invalid multi-choice streams are rejected.

    0.17.1release notes

  • RealtimeAgents now default to gpt-realtime-2.

    0.17.0release notes

Fixes and other changes 84

  • Escapes quotes and backslashes in DOT names used for visualization.

    0.17.8release notes

  • Fixes length-frame exec-stdin writes within a sandbox.

    0.17.8release notes

  • Cancellation is now propagated by the realtime session iterator.

    0.17.8release notes

  • Enforces strict Pydantic validation when strict_json_schema=True with handoffs.

    0.17.8release notes

  • Preserves non-dict Mapping values when converting values to dump-compatible form.

    0.17.8release notes

  • Makes add_items atomic, avoiding partial updates.

    0.17.7release notes

  • Reports effective Blaxel timeouts.

    0.17.7release notes

  • Cleans up branch-only messages when deleting branches.

    0.17.7release notes

  • Cancels sibling guardrail tasks when one raises.

    0.17.7release notes

  • Recursively extracts HTTP errors from nested ExceptionGroups.

    0.17.7release notes

  • Validates ls special permission bits by position.

    0.17.7release notes

  • Adds a hint to the error for duplicated MCP server tool names.

    0.17.7release notes

  • Wakes PTY output collection when the process exits in E2B.

    0.17.7release notes

  • Prevents ambiguous tool dispatch among Realtime agents.

    0.17.7release notes

  • Gates remote-mount edit guidance by mode.

    0.17.7release notes

  • Reduces sandbox sink buffering and spool timeouts.

    0.17.7release notes

  • Avoids stale object-id deduplication in the server conversation tracker.

    0.17.7release notes

  • Prevents empty list or tuple tool output from being dropped.

    0.17.7release notes

  • Suppresses warnings about whitespace in handoff tool names.

    0.17.6release notes

  • Sandbox error retryability is now exposed so developers can determine whether an error can be retried.

    0.17.5release notes

  • Tool-end hook results are now typed as object, correcting the hook result type for developers.

    0.17.5release notes

  • Exports additional tracing-related functions and types from agents.

    0.17.4release notes

  • Exports MCPListToolsItem, ToolSearchCallItem, and ToolSearchOutputItem from agents.

    0.17.4release notes

  • Uses a non-None value for output in FunctionSpanData.

    0.17.4release notes

  • Adds opt-in recovery for missing function tools.

    0.17.4release notes

  • Avoids mutating the codex output schema input.

    0.17.3release notes

  • Short chunks from a custom voice splitter are honored.

    0.17.3release notes

  • Leading question marks in exposed port queries are normalized.

    0.17.3release notes

  • Avoids mutating FunctionTool.params_json_schema.

    0.17.3release notes

  • Handles None text when extracting the last content item.

    0.17.3release notes

  • Output schema names for Literal types are corrected.

    0.17.3release notes

  • Import errors for optional memory dependencies are unified.

    0.17.3release notes

  • Exceptions raised by output guardrails are logged instead of silently ignored.

    0.17.3release notes

  • The handoff filter correctly filters hosted_tool_call types.

    0.17.3release notes

  • Handles None text in text_message_output.

    0.17.3release notes

  • Skips wait_for_status when a Vercel sandbox is already in a terminal state.

    0.17.3release notes

  • Makes AsyncSQLiteSession honor session settings.

    0.17.2release notes

  • Avoids producing empty chat tool outputs.

    0.17.2release notes

  • Preserves rejection reasons for local approvals.

    0.17.2release notes

  • Fixes reasoning persistence for OpenAI Conversations.

    0.17.2release notes

  • Interrupts tracing retry backoff when the application shuts down.

    0.17.2release notes

  • Avoids automatically responding to unknown realtime tools.

    0.17.2release notes

  • Parallel tool-call splits no longer duplicate content and signed thinking blocks.

    0.17.1release notes

  • Failed status is preserved across apply_patch operations.

    0.17.1release notes

  • None values for audio.input and audio.output are treated as unset.

    0.17.1release notes

  • Calling to_base64() no longer mutates the caller's buffer.

    0.17.1release notes

  • The worker stays alive when exporters raise errors.

    0.17.1release notes

  • Chained $ref values are preserved during sibling-key expansion.

    0.17.1release notes

  • Computer instances are excluded from provider duck-typing.

    0.17.1release notes

  • The last known response_id is preserved when resuming a conversation.

    0.17.1release notes

  • Generic dict output schemas are aligned.

    0.17.1release notes

  • Git repository subpaths are validated; empty subpaths are allowed as the repository root, and root subpath aliases are preserved.

    0.17.1release notes

  • An assertion failure is replaced with UserError.

    0.17.1release notes

  • remove_all_tools preserves HandoffInputData.input_items.

    0.17.1release notes

  • Parallel tool-call splits no longer duplicate content and signed thinking blocks.

    0.17.1release notes

  • Strict schema conversion is isolated from the non-strict fallback.

    0.17.1release notes

  • MCPToolCancellationError is exported from the top-level package.

    0.17.1release notes

  • Model retry backoff settings are validated.

    0.17.1release notes

  • MongoDB session metadata timestamps are tracked, and corrupt documents are skipped during pop_item.

    0.17.1release notes

  • Skips the checker when status is resolved during approval-run collection.

    0.17.1release notesrelease notes

  • Nested handoff history content is preserved.

    0.17.1release notes

  • Handoff callables with an async __call__ are awaited.

    0.17.1release notes

  • Required hosted tool IDs are preserved in OpenAI conversation sessions.

    0.17.1release notes

  • Cancelled output guardrail tasks are awaited when a tripwire fires.

    0.17.1release notes

  • Audio content parts are preserved in output_item events.

    0.17.1release notes

  • Output token details are persisted when input details are None.

    0.17.1release notes

  • Realtime event iterators are woken when the session closes.

    0.17.1release notes

  • Realtime output is sent for unknown tool calls.

    0.17.1release notes

  • Existing transcript content is preserved instead of being replaced by a stale delta accumulator.

    0.17.1release notes

  • Invalid input_text parts are skipped when converting user input.

    0.17.1release notes

  • RealtimeAgent fields are validated in __post_init__.

    0.17.1release notes

  • The settings type exposes max_output_tokens.

    0.17.1release notes

  • Reasoning items orphaned by dropped tool calls are removed.

    0.17.1release notes

  • The created_at value is preserved across writes.

    0.17.1release notes

  • RunState guardrail payloads are normalized.

    0.17.1release notes

  • Sandbox archive extraction is limited.

    0.17.1release notes

  • Sandbox provider errors now include their details, making failures more informative.

    0.17.1release notes

  • Corrupt items are skipped during pop instead of disrupting session operations.

    0.17.1release notes

  • Tool guardrail results are preserved across handoffs.

    0.17.1release notes

  • Streaming guardrail exception cleanup is corrected.

    0.17.1release notes

  • String tool trimmer allowlists are handled.

    0.17.1release notes

  • Tracing shutdown is best-effort on process exit.

    0.17.1release notes

  • Existing request_usage_entries are preserved when adding usage.

    0.17.1release notes

  • Fixed an extra_args collision in Responses context management.

    0.17.0release notes

openai-agents 0.1614 changes

Breaking changes 3

  • Rejects function tool input JSON that is not an object.

    0.16.1release notes

  • Hydration now rejects external symlink targets.

    0.16.0release notes

  • The default model changes from gpt-4.1 to gpt-5.4-mini, with implicit GPT-5 defaults including reasoning.effort="none" and verbosity="low".

    0.16.0release notes

Security 2

New APIs and options 3

  • Setting max_turns=None disables the Agents SDK run turn limit; omitting it preserves the default of DEFAULT_MAX_TURNS (10).

    0.16.0release notes

  • Setting include_server_in_tool_names to True includes the MCP server name in tool names to prevent conflicts between MCP servers.

    0.16.0release notes

  • RunConfig can configure SDK-side concurrency for local function tool execution, independently of provider-side parallel_tool_calls.

    0.16.0release notes

Behavior and default changes 1

  • Chat completions tool call output indexes are stabilized.

    0.16.0release notes

Fixes and other changes 5

  • Stabilizes indexes in chat completions stream output.

    0.16.1release notes

  • Counts valid encrypted session items when enforcing limits.

    0.16.1release notes

  • Cleans up temporary git repository clones on failure.

    0.16.1release notes

  • Restores session history when compaction replacement fails.

    0.16.1release notes

  • Permissions is now hashable, matching User and Group.

    0.16.0release notes

openai-agents 0.1518 changes

Breaking changes 3

  • MCP rejects non-object tool input JSON.

    0.15.3release notes

  • Rejects string-like shell commands.

    0.15.2release notes

  • Model refusals are surfaced as ModelRefusalError instead of empty text output or retries until MaxTurnsExceeded.

    0.15.0release notes

Security 2

  • Blocks disabled function tools before execution.

    0.15.2release notes

  • Redacts errors in function tool trace spans.

    0.15.2release notes

New APIs and options 3

  • Adds a context management model setting.

    0.15.2release notes

  • Responses WebSocket keepalive options are now exposed, allowing developers to configure keepalive behavior.

    0.15.1release notes

  • A model_refusal run error handler can handle refusals without raising; for structured-output agents, it may return a value matching the output schema.

    0.15.0release notes

Fixes and other changes 10

  • Audio deltas arriving before audio format negotiation are tolerated.

    0.15.3release notes

  • MCP duplicate tool errors are deterministic.

    0.15.3release notes

  • MCP tool input schemas are no longer mutated.

    0.15.3release notes

  • Rejects failed responses stream terminals.

    0.15.2release notes

  • Redacts MCP invalid JSON errors when tool logging is disabled.

    0.15.2release notes

  • Isolates merged MCP tool metadata.

    0.15.2release notes

  • Avoids replaying assistant conversation item IDs.

    0.15.2release notes

  • Filters custom_tool_call types in the remove_all_tools handoff filter.

    0.15.2release notes

  • Rewinds only matching session suffixes.

    0.15.2release notes

  • Makes ToolContext hashable to match RunContextWrapper.

    0.15.2release notes

openai-agents 0.1451 changes

Breaking changes 1

Security 4

  • Validation of tar and zip members was tightened.

    0.14.7release notes

  • Tracing export payloads are sanitized.

    0.14.1release notes

  • Stops streamed tool execution after a known input guardrail tripwire.

    0.14.1release notes

  • Sensitive MCP tool outputs are redacted more safely when sensitive tracing is disabled.

    0.14.0release notes

Deprecations 1

  • A warning is emitted when characters in a tool name are replaced.

    0.14.3release notes

New APIs and options 17

  • Tool items now expose the convenience property call_id.

    0.14.7release notes

  • Tool items now expose the convenience property tool_name.

    0.14.7release notes

  • Adds an idle timeout option for Modal sandboxes.

    0.14.5release notes

  • Adds BoxMount support.

    0.14.4release notes

  • An extension providing a MongoDB session backend was added.

    0.14.2release notes

  • Sandbox support was added for granting extra filesystem paths.

    0.14.2release notes

  • Can group sandbox memory across multiple turns using a conversation identifier.

    0.14.0release notes

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

    0.14.0release notes

  • Adds hosted sandbox clients for Blaxel, Cloudflare, Daytona, E2B, Modal, Runloop, and Vercel through optional extras.

    0.14.0release notes

  • Adds a fresh-workspace contract for specifying files, directories, repositories, environment, users, groups, and mounts.

    0.14.0release notes

  • RunConfig.group_id can group sandbox memory across multiple turns.

    0.14.0release notes

  • Adds memory that stores extracted lessons in the sandbox workspace, summarizes them in later runs, and supports searching deeper rollout summaries.

    0.14.0release notes

  • Adds an Agent with sandbox defaults, capabilities, and run_as support for running agents in persistent, isolated workspaces.

    0.14.0release notes

  • Adds per-run sandbox configuration for clients, sessions, manifest overrides, snapshots, and materialization concurrency limits.

    0.14.0release notes

  • Adds an explicit serialized sandbox session state for resuming work.

    0.14.0release notes

  • Adds a sandbox client for fast local development.

    0.14.0release notes

  • Adds portable snapshots with path normalization, symlink preservation, mount-safe snapshotting, and remote snapshot support.

    0.14.0release notes

Behavior and default changes 7

  • The Phase 2 memory consolidation turn limit was raised.

    0.14.7release notes

  • GPT-5.5 aliases were added to sandbox compaction.

    0.14.7release notes

  • Defaults were updated to GPT-5.5, changing the model used when developers rely on those defaults.

    0.14.6release notes

  • The Daytona workspace root is prepared before the workspace starts.

    0.14.3release notes

  • Run items now persist tool origin metadata.

    0.14.2release notes

  • Adds runner-managed defaults for prompt cache keys.

    0.14.0release notes

  • RunState serialization is sandbox-aware, enabling runner-managed sandbox state serialization and resume behavior.

    0.14.0release notes

Fixes and other changes 21

  • Preserves import errors when re-exporting MCP components, making failures visible to developers.

    0.14.8release notes

  • Delimits sandbox prompt instruction sections.

    0.14.8release notes

  • Unset fields are now removed from calls to the Responses API.

    0.14.7release notes

  • Fixes serving tool outputs when resuming HITL.

    0.14.5release notes

  • Backfills streamed terminal output.

    0.14.5release notes

  • Relative snapshot base overrides are ignored.

    0.14.4release notes

  • Restorability checks for LocalSnapshot are tightened.

    0.14.3release notes

  • Truncation of manifest descriptions is bounded.

    0.14.3release notes

  • Sandbox paths are normalized to fix path handling.

    0.14.3release notes

  • Sandboxes can be imported on Windows.

    0.14.3release notes

  • ChatCompletion responses now handle None choices.

    0.14.2release notes

  • Compacted Responses user inputs are normalized before session reuse.

    0.14.2release notes

  • LiteLLM extra_body forwarding was fixed.

    0.14.2release notes

  • remove_all_tools now handles hosted tool types that were previously missing.

    0.14.2release notes

  • ResponseOutputText content items now tolerate None text.

    0.14.2release notes

  • Sandbox compaction model parsing was loosened.

    0.14.2release notes

  • Run-loop exceptions are surfaced after stream_events completes.

    0.14.2release notes

  • Vercel roots now trust filesystem permissions.

    0.14.2release notes

  • Preserves computer driver compatibility for modifier keys.

    0.14.1release notes

  • Shields server-managed handoffs from unsupported history rewrites.

    0.14.1release notes

  • The runner manages sandbox preparation, capability binding, session lifecycle, state serialization, and resume behavior.

    0.14.0release notes

openai-agents 0.1330 changes

Security 2

  • AnyLLM responses now sanitize replay input before validation.

    0.13.4release notes

  • Private tool metadata is no longer included in persisted session items.

    0.13.2release notes

New APIs and options 10

  • A public flush_traces API is now available.

    0.13.5release notes

  • Chat completions input now accepts raw image_url content parts.

    0.13.3release notes

  • WebSearchTool gains external_web_access.

    0.13.2release notes

  • The extension module adds an any-llm adapter with responses-compatible routing, allowing developers to use any-llm models.

    0.13.1release notes

  • Initialized notification tolerance is now configurable.

    0.13.1release notes

  • MCPServer now exposes list_resource_templates() to list resource templates.

    0.13.0release notes

  • MCPServer now exposes list_resources() to list resources.

    0.13.0release notes

  • MCPServer now exposes read_resource() to read resources.

    0.13.0release notes

  • MCPServerStreamableHttp exposes session_id so streamable HTTP sessions can be resumed across reconnects or stateless workers.

    0.13.0release notes

  • Chat Completions integrations can opt into reasoning-content replay for provider-specific reasoning/tool-call continuity.

    0.13.0release notes

Behavior and default changes 3

  • Local MCP servers now support callable approval policies.

    0.13.5release notes

  • The default reasoning effort is updated for newer models.

    0.13.2release notes

  • The default websocket Realtime model is now gpt-realtime-1.5, so new Realtime agent setups use it without extra configuration.

    0.13.0release notes

Fixes and other changes 15

  • SQLAlchemySession is hardened against transient SQLite locks.

    0.13.6release notes

  • SQLiteSession exports are lazy-loaded.

    0.13.6release notes

  • Recursive trace preview truncation is stopped.

    0.13.6release notes

  • Reasoning extraction now handles iterable vLLM/any-llm Reasoning objects.

    0.13.5release notes

  • SQLite session writes are serialized with shared file locks.

    0.13.5release notes

  • Avoids stale hydrated input IDs in the server conversation tracker.

    0.13.3release notes

  • LiteLLM reasoning_effort is kept portable across providers.

    0.13.2release notes

  • Cancelled single function tools are handled as tool failures.

    0.13.1release notes

  • Follow-up response.create now waits for realtime response.done.

    0.13.1release notes

  • Converted function tools now preserve static MCP metadata.

    0.13.1release notes

  • Compaction strips orphaned assistant message IDs after reasoning removal.

    0.13.0release notes

  • An eager-task race in the function-tool batch executor was avoided.

    0.13.0release notes

  • remove_all_tools() now removes MCP and reasoning item types as well.

    0.13.0release notes

  • Concurrent first writes in SQLAlchemySession are now race-safe.

    0.13.0release notes

  • The run loop now preserves streamed output guardrail tripwires.

    0.13.0release notes

openai-agents 0.1215 changes

New APIs and options 4

  • The SSE/StreamableHttp params now expose auth.

    0.12.5release notes

  • The SSE/StreamableHttp params now expose httpx_client_factory.

    0.12.5release notes

  • Adds a normalized mode for filtered handoff follow-ups.

    0.12.2release notes

  • Opt-in settings for retrying model API calls are available through ModelSettings and can be passed as run config or as model settings per agent.

    0.12.0release notes

Fixes and other changes 11

  • ClosedResourceError is retried on an isolated session.

    0.12.5release notes

  • MCP 408s are retried on an isolated session.

    0.12.5release notes

  • Streamed nested agent output is recovered before the cancellation fallback.

    0.12.5release notes

  • Custom table names are now honored.

    0.12.4release notes

  • Jittered retry delays are capped at max_delay.

    0.12.4release notes

  • Cancelled MCP invocations are normalized into tool errors.

    0.12.4release notes

  • Transient failures are retried on an isolated session.

    0.12.4release notes

  • Inner MCP tool cancellations are handled as tool errors.

    0.12.3release notes

  • Streamable-http MCP requests are serialized per session.

    0.12.3release notes

  • Orphan hosted shell calls are dropped before multi-turn replay.

    0.12.2release notes

  • Explicit approval rejection messages are preserved across resume flows.

    0.12.1release notes

openai-agents 0.1111 changes

New APIs and options 1

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

    0.11.0release notes

Behavior and default changes 6

  • ComputerTool migrates to the GA computer tool; gpt-5.4 can be used with it in addition to computer-use-preview.

    0.11.0release notes

  • Computer preview metadata is optional on GA requests.

    0.11.0release notes

  • Reasoning summaries are finished before text deltas.

    0.11.0release notes

  • RunState schema policy is aligned with release boundaries.

    0.11.0release notes

  • Structured realtime tool outputs are serialized as JSON.

    0.11.0release notes

  • video_url can be handled with litellm and chat completions models.

    0.11.0release notes

Fixes and other changes 4

  • Tracing now shows the GA computer alias.

    0.11.1release notes

  • MCP tool title metadata is preserved across tool call items.

    0.11.0release notes

  • Run-context tool wrappers preserve plain run context.

    0.11.0release notes

  • SQLiteSession now satisfies the Session protocol.

    0.11.0release notes

openai-agents 0.1013 changes

Breaking changes 1

  • Callable MCP policies require approval when the agent is omitted.

    0.10.2release notes

Security 1

  • Oversized tracing span payloads are sanitized.

    0.10.2release notes

New APIs and options 7

  • Explicit prefix modes were added for MultiProvider.

    0.10.5release notes

  • Run results expose immutable metadata for agent tool invocations.

    0.10.3release notes

  • Adds a tool_context accessor for agent tools.

    0.10.3release notes

  • Model request IDs are exposed on raw responses.

    0.10.2release notes

  • Set this option to enable a reusable WebSocket connection for the Responses API.

    0.10.0release notes

  • Use this utility to enable a reusable WebSocket connection for Responses API calls.

    0.10.0release notes

  • Call this function with "websocket" to switch all OpenAI Responses API calls to WebSocket mode; the default behavior is unchanged.

    0.10.0release notes

Fixes and other changes 4

  • McpError is returned as a structured error result instead of crashing the agent run.

    0.10.5release notes

  • Failures from parallel function tools are isolated so one tool’s failure does not affect the others.

    0.10.4release notes

  • Resumed traces are reattached without creating duplicate trace starts.

    0.10.2release notes

  • Realtime model literals in the realtime config were synchronized.

    0.10.1release notes

openai-agents 0.918 changes

Breaking changes 2

  • The return type is narrowed from Tool to FunctionTool; code relying on the broader union type may need adjustments.

    0.9.0release notes

  • Python 3.9 is no longer supported; upgrade to Python 3.10 or newer.

    0.9.0release notes

New APIs and options 5

  • Adds the opt-in value omit to mitigate 400 errors caused by inconsistent item sets when using reasoning models; the default behavior is unchanged.

    0.9.2release notes

  • Function tools accept timeout_behavior, defaulting to error_as_result, with raise_exception also available.

    0.9.0release notes

  • Function tools accept an optional timeout_error_function to customize their behavior.

    0.9.0release notes

  • Function tools accept timeout_seconds to customize their behavior.

    0.9.0release notes

  • ToolOutputTrimmer is added for smart context management.

    0.9.0release notes

Behavior and default changes 2

  • The RunState schema is bumped to 1.1 and has an explicit backward-read policy.

    0.9.1release notes

  • Shell, apply_patch, and computer runtime tools now emit tracing function spans.

    0.9.1release notes

Fixes and other changes 9

  • Strips total_tokens from OpenAI tracing usage payloads.

    0.9.3release notes

  • Reasoning items are filtered from nested handoff input.

    0.9.2release notes

  • Keeps the trace active until voice pipeline processing completes.

    0.9.2release notes

  • Iterable input history is materialized, allowing it to be handled correctly when converted to a new input list.

    0.9.1release notes

  • Nested agent-tool HITL state now persists across RunState JSON round-trips.

    0.9.1release notes

  • Nested agent-tool resume cache is isolated by RunState scope.

    0.9.1release notes

  • Tracing globals are initialized lazily to avoid import-time fork hazards.

    0.9.1release notes

  • StreamedAudioResult now handles odd-length audio buffers.

    0.9.0release notes

  • Trace metadata is now propagated to spans for processors.

    0.9.0release notes

openai-agents 0.832 changes

Breaking changes 2

  • Configure local MCP tool failure handling; the default can return model-visible error output instead of failing the whole run. Set it to None to retain fail-fast semantics.

    0.8.0release notes

  • Synchronous Python callables wrapped as function tools execute on worker threads instead of on the event loop thread.

    0.8.0release notes

New APIs and options 13

  • ShellTool supports a container-based shell runtime with skills, including automatic container selection and skill references.

    0.8.4release notes

  • Realtime agents SDK turn detection supports the model_version parameter.

    0.8.3release notes

  • Function schemas now support Annotated[T, Field(...)], allowing field metadata to be used in function schema definitions.

    0.8.2release notes

  • Adds a maximum-turns capability in REPL.

    0.8.1release notes

  • Makes the codex subprocess stream limit configurable and validates its bounds.

    0.8.0release notes

  • Adds error handlers for runs that reach the maximum turn limit.

    0.8.0release notes

  • MCP servers can return image responses.

    0.8.0release notes

  • Adds support for resolving MCP tool metadata.

    0.8.0release notes

  • Function tools can declare that they require human approval before execution.

    0.8.0release notes

  • Serialize and resume runs after human decisions are made, approving or rejecting pending tool calls.

    0.8.0release notes

  • Adds parameters for customizing sessions.

    0.8.0release notes

  • Adds support for structured agent tool input.

    0.8.0release notes

  • Customize error output from tools.

    0.8.0release notes

Behavior and default changes 5

  • Tool calls now include the agent in ToolContext.

    0.8.2release notes

  • Adds run-context thread reuse for codex_tool.

    0.8.1release notes

  • Adds CRLF support for apply_diff.

    0.8.0release notes

  • Run results surface pending tool approvals as interruptions.

    0.8.0release notes

  • Tool descriptions are propagated to ToolCallItem.

    0.8.0release notes

Fixes and other changes 12

  • Required parameters are validated before call_tool is called.

    0.8.4release notes

  • The default failure handler is resolved at invoke time.

    0.8.4release notes

  • Queued events are emitted before a max-turns exception.

    0.8.4release notes

  • An agent invoked as a tool inherits its parent RunConfig.

    0.8.4release notes

  • RunResultStreaming supports Pydantic model_rebuild.

    0.8.4release notes

  • Null audio formats are omitted from SIP call attach updates.

    0.8.4release notes

  • tool_choice is omitted when a prompt manages built-in tools.

    0.8.4release notes

  • Avoids noisy Pydantic serialization warnings for model_dump items.

    0.8.2release notes

  • Unsupported usage fields are dropped before OpenAI trace ingest.

    0.8.2release notes

  • Preserves handoff target resolution compatibility in run-state agent maps.

    0.8.1release notes

  • Persists streamed run-again tool items to the session.

    0.8.1release notes

  • Fixes MCP tool timeouts that halted agent flow.

    0.8.0release notes

openai-agents 0.75 changes

Breaking changes 2

  • Nested handoffs are disabled by default; set nest_handoff_history to True to enable them.

    0.7.0release notes

  • The default reasoning effort for gpt-5.1 and gpt-5.2 is now none; explicitly set it to low to retain the previous default.

    0.7.0release notes

New APIs and options 2

  • Adds a manager for safely managing the lifecycle of multiple MCP server instances.

    0.7.0release notes

  • Adds custom WebSocket options to OpenAIRealtimeWebSocketModel.

    0.7.0release notes

Behavior and default changes 1

  • When using a sessions store, the callback is optional; by default, new input is appended to the session history.

    0.7.0release notes

openai-agents 0.657 changes

Breaking changes 3

  • Shell tool outputs now enforce max_output_length.

    0.6.7release notes

  • Tool execution exceptions are converted to runtime errors.

    0.6.5release notes

  • Handoff history is now collapsed into a single message when handing off to a new agent; test agents before upgrading to production.

    0.6.0release notes

New APIs and options 16

  • Adds input-based responses compaction with a store-aware auto mode.

    0.6.9release notes

  • Adds an experimental Codex extension that lets agents use Codex as a tool.

    0.6.7release notes

  • Lets an agent use the Codex CLI as a tool when Codex is installed on the host.

    0.6.7release notes

  • Add an aiosqlite-backed asynchronous session store.

    0.6.6release notes

  • Silence LiteLLM serializer warnings in streaming when opted in.

    0.6.6release notes

  • Add responses.compact to automatically compact long conversations.

    0.6.6release notes

  • Agent hooks receive an AgentHookContext with turn_input.

    0.6.5release notes

  • The function_tool decorator accepts tool guardrails.

    0.6.5release notes

  • Gemini 3 Pro is supported.

    0.6.5release notes

  • Tracing API keys can be supplied per run.

    0.6.5release notes

  • Realtime audio mapping is supported.

    0.6.5release notes

  • Exposes failure_error_function in Agent.as_tool so developers can configure failure handling for an agent used as a tool.

    0.6.4release notes

  • Adds on_stream to agents used as tools, allowing developers to handle streaming events from those agents.

    0.6.4release notes

  • Adds a run_in_parallel parameter to input guardrails.

    0.6.0release notes

  • Adds prompt_cache_retention to ModelSettings.

    0.6.0release notes

  • Adds logging for tool errors.

    0.6.0release notes

Behavior and default changes 6

  • Conversations are compatible across models.

    0.6.5release notes

  • Context is attached to apply patch operations.

    0.6.3release notes

  • ModelResponse preserves logprobs from the chat completions API, making them available to developers.

    0.6.3release notes

  • Static tool filtering in MCPServer no longer requires an agent or run_context.

    0.6.2release notes

  • Internal calls can chain previous_response_id on the first turn.

    0.6.2release notes

  • Fixes the default settings for the SIP realtime runner.

    0.6.1release notes

Fixes and other changes 32

  • Handles invalid tool arguments JSON without crashing.

    0.6.9release notes

  • Exception handling was enhanced during MCP server initialization and cleanup.

    0.6.8release notes

  • Fixed missing reasoning_content in DeepSeek tool call messages.

    0.6.8release notes

  • Tool message ordering for Gemini models was fixed.

    0.6.8release notes

  • Vertex AI function calling with no-param tools was fixed.

    0.6.8release notes

  • Defers compaction when local tool outputs are present.

    0.6.7release notes

  • Deduplicates nested handoff inputs.

    0.6.7release notes

  • Improve how OPENAI_AGENTS_DISABLE_TRACING is loaded.

    0.6.6release notes

  • Improve PCM duration calculation.

    0.6.6release notes

  • Fix thinking tokens not being attached when there are no tool calls.

    0.6.6release notes

  • Handle VAD truncation.

    0.6.6release notes

  • Assistant tool-call messages now include explicit content=None.

    0.6.5release notes

  • The chatcmpl converter preserves non-text tool outputs.

    0.6.5release notes

  • The LiteLLM converter preserves non-text tool outputs.

    0.6.5release notes

  • Realtime text mode handles the output_text type.

    0.6.5release notes

  • Streaming no longer blocks cancellation.

    0.6.5release notes

  • Tracing shutdown safety is improved.

    0.6.5release notes

  • Enables creating and disposing a Computer per agent run.

    0.6.4release notes

  • Ensures strict_json_schema is present when using the Chat Completions API.

    0.6.4release notes

  • Improves null handling for input and output token details in the Usage class.

    0.6.4release notes

  • The energy threshold in the realtime CLI demo is fixed.

    0.6.3release notes

  • as_tool no longer returns a blank string when a tool terminates early.

    0.6.2release notes

  • The non-streaming path saves the conversation to the session before handoff.

    0.6.2release notes

  • Callers can send None values to the Realtime API.

    0.6.2release notes

  • reasoning.summary is preserved when passing data to LiteLLM.

    0.6.2release notes

  • A session.add_items exception no longer causes streaming to hang.

    0.6.2release notes

  • Usage from earlier stream chunks is retained when later chunks contain none.

    0.6.2release notes

  • Usage initialization normalizes None token detail objects.

    0.6.2release notes

  • Fixes an invalid model setting when passing a prompt to Agent.

    0.6.1release notes

  • Fixes an agent memory leak using weakref.

    0.6.0release notes

  • A configurable startup delay was added to avoid initial audio jitter with Twilio.

    0.6.0release notes

  • Fixes a Redis SSL connection error with redis-py v7.

    0.6.0release notes

openai-agents 0.511 changes

Breaking changes 1

  • Refusal content parts added by the event now use ResponseOutputRefusal.

    0.5.0release notes

New APIs and options 4

  • Adds support for the GPT-5.1 apply_patch tool.

    0.5.1release notes

  • Adds support for the GPT-5.1 shell tool.

    0.5.1release notes

  • Dapr is now available as a session storage option.

    0.5.0release notes

  • Usage now includes a list of per-request usage data.

    0.5.0release notes

Behavior and default changes 2

  • RealtimeRunner can now handle SIP protocol connections.

    0.5.0release notes

  • Realtime tool start and end events now include tool arguments.

    0.5.0release notes

Fixes and other changes 4

  • Compatibility was improved for openai 2.7.0.

    0.5.0release notes

  • Python 3.14 is now a supported version.

    0.5.0release notes

  • The internal logic of Runner#run_sync was revised for Python 3.14 compatibility.

    0.5.0release notes

  • Usage initialization now normalizes None token details.

    0.5.0release notes

openai-agents 0.430 changes

Breaking changes 2

  • OpenAI package v1.x is no longer supported; use v2.x with this SDK.

    0.4.0release notes

  • Excludes unset fields from the items returned by get_items().

    0.4.0release notes

Security 1

  • Rolls back session changes when a Guardrail tripwire is triggered.

    0.4.0release notes

New APIs and options 7

  • Async tool calling is enabled in Realtime sessions.

    0.4.2release notes

  • Developers can pass a custom reasoning effort for LiteLLM providers.

    0.4.2release notes

  • Adds an engine accessor so a SQLAlchemySession created from a URL can be closed.

    0.4.1release notes

  • Adds image and file output types for functions.

    0.4.0release notes

  • Adds a graceful cancel mode for streaming runs.

    0.4.0release notes

  • Exposes MCP message handler configuration.

    0.4.0release notes

  • Adds httpx_client_factory to MCPServerStreamableHttp initialization options.

    0.4.0release notes

Fixes and other changes 20

  • The LiteLLM model handles an empty choices array.

    0.4.2release notes

  • The stream handler checks for empty reasoning content arrays.

    0.4.2release notes

  • Awaits a cancelled websocket task to prevent a resource leak.

    0.4.1release notes

  • Prevents a race condition when iterating listeners.

    0.4.1release notes

  • Adds the missing MCP approval response event name.

    0.4.1release notes

  • Fixes tuple assignment caused by trailing commas during response cancellation.

    0.4.1release notes

  • Prevents a ValueError when the audio buffer is empty during STT.

    0.4.1release notes

  • Keeps a streaming trace from ending before guardrails complete.

    0.4.1release notes

  • Fixes LiteLLM failures involving the function name for tool_choice when streaming is enabled.

    0.4.1release notes

  • Makes Tool Output dict conversion stricter to improve backward compatibility.

    0.4.1release notes

  • Fixes guardrails behavior when turn_detection.interrupt_response is true.

    0.4.1release notes

  • The filename for input_file is optional in code, supporting non-OpenAI models.

    0.4.0release notes

  • Returns tool output to the LLM.

    0.4.0release notes

  • Fixes multi-turn handling for conversation_id and previous_response_id so only new items are sent.

    0.4.0release notes

  • Adds support for input_audio type items.

    0.4.0release notes

  • Adjusts the realtime handoff import.

    0.4.0release notes

  • Corrects the streaming order of ReasoningItem and RawResponsesStreamEvent events.

    0.4.0release notes

  • Handles the omit type in _remove_not_given() for litellm models.

    0.4.0release notes

  • Fixes an issue where SQLAlchemySession could return items in an invalid order.

    0.4.0release notes

  • Converts oneOf to anyOf in strict schemas for OpenAI compatibility.

    0.4.0release notes