github openai/openai-agents-python v0.9.2

12 hours ago

Key Changes

reasoning_item_id_policy: omit for reasoning models

To mitigate 400 errors caused by an inconsistent set of items when using reasoning models, this release introduces the reasoning_item_id_policy: 'omit' option to RunConfig. This is a new, opt-in option, so the default behavior is unchanged.

run_config = RunConfig(reasoning_item_id_policy="omit")
result = await Runner.run(
    agent,
    "Tell me about recursion in programming.",
    run_config=run_config,
)

What's Changed

  • feat: persist reasoning item ID policy across resumes and streamed follow-up turns by @seratch in #2512
  • fix: filter reasoning items from nested handoff input by @seratch in #2508
  • fix(voice): keep trace active until pipeline processing completes by @OiPunk in #2472

Documents & Other Changes

  • docs: update configuration details by @seratch in #2507
  • docs: update translated document pages by @github-actions[bot] in #2509
  • Release 0.9.2 by @github-actions[bot] in #2510

Full Changelog: v0.9.1...v0.9.2

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

NewReleases is sending notifications on new releases.