OpenAI released version 0.21.0 of the openai-agents-python SDK, introducing new provider-neutral testing utilities and updating compatibility for the OpenAI Python library version 3.

  • Added agents.testing, agents.realtime.testing, and agents.voice.testing modules to enable deterministic workflow tests without making provider requests.
  • Updated OpenAI provider compatibility to require openai>=3.0.0,<4, including support for HTTPX2-aware request handling.
  • Hardened RunState interruption snapshots, recursive agent-tool approvals, max-turn finalization, streaming cleanup, and sensitive-error redaction.
  • Improved MCP lifecycle snapshot isolation and added configurable retry backoff ceilings.
  • Added Sandbox Runloop existing-secret support and tightened view-image path grants.
  • Enforced stricter Voice validation for invalid channels, frame rates, incomplete multichannel frames, and non-finite audio rates.

This release allows developers to test Agent, Sandbox, Realtime, and Voice workflows deterministically while ensuring the SDK remains compatible with the latest OpenAI Python client.