Releases: openai/openai-agents-python
v0.6.8
What's Changed
- Enhance exception handling in MCP server initialization and cleanup by @habema in #2268
- Bump LiteLLM to fix Vertex AI function calling with no-param tools by @habema in #2329
- Fix: Tool message ordering for Gemini models by @habema in #2331
- fix: #2155 DeepSeek reasoning_content missing in tool call messages by @wahmd in #2328
Documents & Others
- docs: add codex tool document section by @seratch in #2325
- Update all translated document pages by @github-actions[bot] in #2326
- Release 0.6.8 by @github-actions[bot] in #2332
New Contributors
Full Changelog: v0.6.7...v0.6.8
v0.6.7
What's Changed
- feat: add experimental Codex extension and tool by @seratch in #2320
- Enforce max_output_length for shell tool outputs by @gustavz in #2299
- fix: #2171 dedupe nested handoff inputs by @seratch in #2323
- fix: #2317 defer compaction when local tool outputs are present by @seratch in #2322
Experimental: Codex Tool Support
Starting with this version, we have added a new experimental Codex extension (agents.extensions.experimental.codex). This extension allows you to use Codex as a tool within your agents. Since this module is still experimental, its behavior and implementation details may change in future releases.
If you run an agent with codex_tool() on a host where Codex is installed, the agent will use Codex as a tool to answer the question. The tool simply runs the Codex CLI as a subprocess, so all existing Codex configuration, skills, and capabilities are available without any additional setup.
See the example code and #2320 for more details.
Documents & Others
- Update docs by @seratch in #2307
- Update all translated document pages by @github-actions[bot] in #2312
- Update all translated document pages by @github-actions[bot] in #2316
- chore: update test coverage rules to exclude tests/* by @seratch in #2318
- Release 0.6.7 by @github-actions[bot] in #2319
Full Changelog: v0.6.6...v0.6.7
v0.6.6
What's Changed
- feat: #2206 Add responses.compact: auto-compact long conversations by @ruskaruma in #2224 #2287
- Add AsyncSQLiteSession (aiosqlite-backed async session store) by @gustavz in #2284
- fix: #2009 #2010 Improve PCM duration calculation and handle VAD truncation by @ruskaruma in #2059
- Fix thinking tokens not attached without tool calls (#2195) by @AryanBagade in #2290
- Improve loading of OPENAI_AGENTS_DISABLE_TRACING by @seratch in #2302
- Harden tracing shutdown logging against closed handlers by @seratch in #2270
- fix: bump litellm to resolve pydantic deprecation warnings by @seratch in #2292
- fix: #2291 silence LiteLLM serializer warnings in streaming (opt-in) by @seratch in #2295
Documents & Others
- Add regression tests as prep for HITL changes by @seratch in #2267
- Add verify-changes skill to this project by @seratch in #2271
- docs: align contributor guide and skills with JS updates by @seratch in #2286
- docs: add PR draft guidance skill by @seratch in #2288
- Add runner script for examples and refresh sample outputs by @seratch in #2289
- docs: add ExecPlan guidance and template by @seratch in #2298
- Update examples by @seratch in #2300
- feat: add examples auto-run skill and refresh example scripts by @seratch in #2303
- Add two more agent skills by @seratch in #2304
- misc: add docs-sync skill by @seratch in #2306
- chore: add release workflows and review prompt by @seratch in #2309
- chore: add release PR labeling and milestone fallback by @seratch in #2311
- Release 0.6.6 by @github-actions[bot] in #2310
New Contributors
- @AryanBagade made their first contribution in #2290
Full Changelog: v0.6.5...v0.6.6
v0.6.5
What's Changed
- Add per-run tracing API key support by @rm-openai in #2260
- Add AgentHookContext with turn_input for agent hooks by @ihower in #2213
- feat: Add tool guardrails to function_tool decorator args (ref #2218) by @seratch in #2227
- Add realtime audio mapping support and SIP session payload tests by @seratch in #2225
- fix: #2204 Convert tool execution exception to runtime error by @aligokalppeker in #2243
- fix: handle output_text type in realtime text mode by @sbera77 in #2235
- fix: #2222 Streaming is blocking and cannot be cancelled by @seratch in #2226
- fix: Improve tracing shutdown safety by @seratch in #2229
- Gemini 3 Pro support and cross-model conversation compatibility by @ihower in #2158
- Preserve non-text tool outputs in LiteLLM and chatcmpl converters by @ihower in #2214
- Add explicit content=None to assistant tool-call messages in Chat Completions converter by @ihower in #2238
- v0.6.5 by @seratch in #2263
Documents
- docs: Add document updates for #2169 changes by @seratch in #2170
- Fix README.md typo in uv installation instructions by @zachparent-oai in #2210
- docs: fix code typo in
forloop by @aniketmaurya in #2209 - Make example prompt consistent with Quick-start context by @zhaoyanthu in #2215
- Update all translated document pages by @github-actions[bot] in #2207
- Update all translated document pages by @github-actions[bot] in #2212
- Update all translated document pages by @github-actions[bot] in #2219
- Update all translated document pages by @github-actions[bot] in #2262
New Contributors
- @zachparent-oai made their first contribution in #2210
- @aniketmaurya made their first contribution in #2209
- @zhaoyanthu made their first contribution in #2215
- @aligokalppeker made their first contribution in #2243
Full Changelog: v0.6.4...v0.6.5
v0.6.4
What's Changed
- feat: Add on_stream to agents as tools by @seratch in #2169
- fix: Enable creating/disposing Computer per agent run by @seratch in #2191
- Expose failure_error_function in Agent.as_tool by @Nekowaii in #2179
- fix #2181 FunctionTool.strict_json_schema is missing when using Chat Completions API by @seratch in #2182
- fix: Enhance null handling for input and output token details in Usage class by @aliasgher-sketric in #2192
- Upgrade GitHub Actions to latest versions by @salmanmkc in #2194
- Upgrade GitHub Actions for Node 24 compatibility by @salmanmkc in #2193
- Fix pypa/gh-action-pypi-publish version to use SHA pinning by @salmanmkc in #2198
- v0.6.4 by @seratch in #2184
Documents
- Print called tool's name in
examples/basic/stream_items.pyby @habema in #2174 - docs: Upgrading to GPT-5.2 by @cguo-oai in #2188
- Update all translated document pages by @github-actions[bot] in #2189
- docs: Resolve code snippet issues within a narrow window size by @seratch in #2197
New Contributors
- @cguo-oai made their first contribution in #2188
- @salmanmkc made their first contribution in #2194
- @Nekowaii made their first contribution in #2179
- @aliasgher-sketric made their first contribution in #2192
Full Changelog: v0.6.3...v0.6.4
v0.6.3
What's Changed
- feat: preserve logprobs from chat completions API in ModelResponse by @JRMeyer in #2134
- Attach context to apply patch operations by @gustavz in #2162
- [fix] Realtime CLI demo energy threshold by @lionel-oai in #2166
- upgrade openai dep to v2.9.0 by @rm-openai in #2177
- v0.6.3 by @rm-openai in #2178
New Contributors
- @JRMeyer made their first contribution in #2134
- @gustavz made their first contribution in #2162
- @lionel-oai made their first contribution in #2166
Full Changelog: v0.6.2...v0.6.3
v0.6.2
What's Changed
- fix: allow static tool filtering without agent and run_context in MCPServer by @sevakva in #2108
- Fix as_tool returning blank string on early tool termination by @ihower in #2112
- docs: clarify handoff() docs, callable not supported by @ihower in #2116
- Fix: usage from earlier stream chunks when later chunks have none by @ihower in #2126
- Fix #2130 streaming hang when session.add_items raises an exception by @ihower in #2131
- fix: save conversation to session before handoff for non-streaming path by @mjschock in #2128
- docs: add community session implementations section by @knowsuchagency in #2139
- Update all translated document pages by @github-actions[bot] in #2142
- fix(usage): Normalize None token detail objects on Usage initialization by @codefromthecrypt in #2141
- Enable previous_response_id chaining for internal calls on the first turn by @ihower in #2117
- fix(litellm): preserve reasoning.summary when passing to LiteLLM by @Chesars in #2144
- Update all translated document pages by @github-actions[bot] in #2147
- Allow user to send None values to Realtime API by @Sean-Der in #2152
- v0.6.2 by @rm-openai in #2153
New Contributors
- @sevakva made their first contribution in #2108
- @mjschock made their first contribution in #2128
- @Chesars made their first contribution in #2144
- @Sean-Der made their first contribution in #2152
Full Changelog: v0.6.1...v0.6.2
v0.6.1
What's Changed
- fix: invalid model setting when passing prompt to Agent by @seratch in #1852
- docs: document input guardrail execution modes by @rvv-karma in #2084
- Update all translated document pages by @github-actions[bot] in #2104
- fix: #2097 fix the default settings for SIP realtime runner by @seratch in #2105
- version 0.6.1 by @seratch in #2106
Full Changelog: v0.6.0...v0.6.1
v0.6.0
Key changes
Handoff behavior has a breaking change in this version. Specifically, the message history is now collapsed into a single message when handing off to a new agent. We have verified and evaluated this behavior and think it works better, but recommend testing with your agents before upgrading to v0.6.0 in production.
What's Changed
- fix(twilio): add configurable startup delay to avoid initial audio jitter (fixes #1906) by @Shraman123 in #2033
- fix: #2081 Redis SSL Connection Error with redis-py v7 by @yju0808 in #2082
- Nest handoff history by default by @jhills20 in #1996
- Upgrade openai-python to 2.8.0 for GPT 5.1 by @ihower in #2091
- Update all translated document pages by @github-actions[bot] in #2092
- Add prompt_cache_retention to ModelSettings by @ihower in #2095
- feat: add run_in_parallel parameter to input guardrails by @rvv-karma in #1986
- fix: #2008 Fix agent memory leak using weakref by @DanieleMorotti in #2014
- docs: fix typos in some files by @Edge-Seven in #2096
- feat: add tool error logging by @danilbogdan in #1804
- v0.6.0 by @rm-openai in #2093
New Contributors
- @Shraman123 made their first contribution in #2033
- @yju0808 made their first contribution in #2082
- @rvv-karma made their first contribution in #1986
- @Edge-Seven made their first contribution in #2096
- @danilbogdan made their first contribution in #1804
Full Changelog: v0.5.1...v0.6.0
v0.5.1
Key update is support for new tools from the GPT-5.1 launch: shell and apply_patch.
What's Changed
- Docs: Add per-request usage to docs and example script by @habema in #2026
- docs: Update document pages for v0.5.0 release by @seratch in #2019
- Update all translated document pages by @github-actions[bot] in #2044
- Fix Anthropic model used in LiteLLM example by @amri369 in #2047
- fix: #2073 Improve type hinting in memory extension modules by @habema in #2077
- Add new tools for gpt-5.1 by @dkundel-openai in #2079
- v0.5.1 by @rm-openai in #2080
Full Changelog: v0.5.0...v0.5.1