@openai/agents-openai
0.22.0 · 12 Nov 2026MIT2.5M / weekRepositoryHomepagenpmAtom feed
In short
1 breaking1 new9 fixed18 internal
- Breaking
fix: Preserve bounded JSON usage metadata and reuse OpenAI wire types; breaking types require narrowing usage details, Realtime image content, nullable MCP descriptions, unknown schemas/tracing metadata, and optional transcription breakdowns; saved states retain schema 1.23 when compatible and use 1.24 for richer metadata or newer nested runs.
Release note
Patch Changes
Refresh compatible SDK, toolchain, and example dependencies
session: Defer automatic Responses compaction for pending tool approvals
Allow sandbox clients to prepare manifest environments in their execution context (#2077).
agents-openai: Allow forcing a function or handoff that shares a built-in Responses tool name (openai/openai-agents-python#5639).
Export valid tracing items when another item cannot be serialized
Accept namespaced OpenAI model IDs for Responses compaction and forward the full identifier to the client (openai/openai-agents-python#5225).
openai: Default reasoning effort to
nonefor function tools and handoffs on the OpenAI Chat Completions API withgpt-6-solandgpt-6-luna, matching openai/openai-agents-python#5420.tracing: Expose offered Chat Completions tool definitions on generation spans when sensitive data capture is enabled. Custom processors and custom export destinations can inspect the definitions. Hosted OpenAI trace exports omit them.
Batch conversation session appends in order within the 20-item request limit (openai/openai-agents-python#5334)
agents-openai: Remove duplicate endpoint helper imports that prevented the provider package from compiling.
Reject unfinished official Chat Completions streams and describe missing stream completion (openai/openai-agents-python#5211, openai/openai-agents-python#5457).
Preserve bounded JSON usage metadata and reuse OpenAI wire types; breaking types require narrowing usage details, Realtime image content, nullable MCP descriptions, unknown schemas/tracing metadata, and optional transcription breakdowns; saved states retain schema 1.23 when compatible and use 1.24 for richer metadata or newer nested runs.
Update Zod to 4.6.6 while preserving saved guardrail checkpoints with omitted metadata.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.