Agent DailyAgent Daily
releaseintermediate

[Release] openai/openai-agents-python v0.18.1: v0.18.1

By seratchgithub
View original on github

OpenAI Agents Python v0.18.1 introduces GPT-5.6 model defaults, fixes critical issues with cache-write support, realtime session cleanup, nested tool state restoration, and stream handling. The release includes performance improvements for logprobs accumulation and enhanced session browsing helpers. Documentation updates clarify agent tool state options and realtime runner context.

Key Points

  • Added GPT-5.6 model defaults and migrated examples to use the latest model
  • Fixed cache-write usage compatibility across different OpenAI Python versions
  • Made realtime session cleanup deterministic to prevent race conditions
  • Preserved nested tool state during agent restoration to maintain complex tool hierarchies
  • Closed Chat Completions streams on early exit to prevent resource leaks
  • Enhanced AdvancedSQLiteSession browsing helpers to handle list content properly
  • Optimized streamed logprobs accumulation from O(n²) to O(n) complexity
  • Automatically send logprobs=True when top_logprobs is set on Chat Completions
  • Clarified agent tool state options in documentation for better developer guidance
  • Documented refusal None invariant for test items to ensure consistent behavior

Found this useful? Add it to a playbook for a step-by-step implementation guide.

Workflow Diagram

Start Process
Step A
Step B
Step C
Complete
Quality

Concepts