github openai/openai-agents-python v0.13.0

10 hours ago

Key Changes

This minor release does not introduce a breaking change, but it includes a notable Realtime default update plus new MCP capabilities and runtime stability fixes. Highlights are:

  • The default websocket Realtime model is now gpt-realtime-1.5, so new Realtime agent setups use the newer model without extra configuration.
  • MCPServer now exposes list_resources(), list_resource_templates(), and read_resource(), and MCPServerStreamableHttp now exposes session_id so streamable HTTP sessions can be resumed across reconnects or stateless workers.
  • Chat Completions integrations can now opt into reasoning-content replay via should_replay_reasoning_content, improving provider-specific reasoning/tool-call continuity for adapters such as LiteLLM/DeepSeek.
  • Fixed several runtime and session edge cases, including concurrent first writes in SQLAlchemySession, compaction requests with orphaned assistant message IDs after reasoning stripping, remove_all_tools() leaving MCP/reasoning items behind, and a race in the function-tool batch executor.

What's Changed

  • fix: default realtime websocket model to gpt-realtime-1.5 by @seratch in #2737
  • fix: #2729 avoid eager-task race in function tool batch executor by @seratch in #2731
  • fix: preserve streamed output guardrail tripwires in the run loop by @seratch in #2758
  • fix(compaction): strip orphaned assistant message IDs after reasoning removal by @Ratnaditya-J in #2728
  • feat: #2669 add opt-in reasoning content replay for chat completion models by @seratch in #2670
  • fix: remove_all_tools missing MCP and reasoning item types by @joaquinhuigomez in #2700
  • feat(mcp): expose list_resources, list_resource_templates, and read_resource on MCPServer by @adityasingh2400 in #2721
  • feat(mcp): expose session_id on MCPServerStreamableHttp by @adityasingh2400 in #2708
  • fix(memory): make SQLAlchemySession first writes race-safe by @FelmonFekadu in #2725

Documentation & Other Changes

  • docs: add PromptLayer integration link to tracing documentation by @adagradschool in #2718
  • docs: update translated document pages by @github-actions[bot] in #2719
  • docs: highlight gpt-realtime-1.5 in public docs by @teri-oai in #2724
  • docs: update translated document pages by @github-actions[bot] in #2726
  • docs: clarify cancel-after-turn streaming guidance by @FelmonFekadu in #2710
  • docs: update translated document pages by @github-actions[bot] in #2730
  • docs: rebrand Keywords AI to Respan by @drPod in #2757
  • chore: add runtime behavior probe skill by @seratch in #2743
  • chore: parallelize code-change-verification after format by @seratch in #2751
  • Release 0.13.0 by @github-actions[bot] in #2738

New Contributors

Full Changelog: v0.12.5...v0.13.0

Don't miss a new openai-agents-python release

NewReleases is sending notifications on new releases.