Packages

@openai/agents

0.22.0 · 12 Nov 2026MIT2.5M / weekRepositoryHomepagenpmAtom feed

Your version

0.17.0

19 Aug 2026Where it was published

0.22.0 is the newest release of 0.17.x.

In short

3 fixed3 internal

Release note

Key Changes

Output-guardrail replay safety

Serialized output-bearing approval checkpoints now fail closed with UserError when the SDK cannot prove which response owns a pending terminal tool output. Continue with the live RunState when possible, or start a new run from safe input instead of replaying ambiguous serialized items. When an output guardrail rejects a completed function-tool result used as final output, the SDK replaces rejected content in SDK-owned replay surfaces with Output withheld by an output guardrail., sanitizes current guardrail metadata, and preserves earlier accepted history. This does not undo external tool side effects or erase application-owned copies.

Complete guardrail batch results

Guardrails started in the same batch now settle before the runner surfaces a tripwire or execution failure. Completed sibling results remain available in run state while further run processing is halted.

Explicit OpenAI client configuration

OpenAIProvider now rejects organization or project when openAIClient is also supplied because provider-level values cannot modify an already-created client. Configure these values when constructing the OpenAI client, then pass that client through openAIClient.

What's Changed

  • core: Redact blocked tool outputs and aliases from replay state

  • openai: Reject ignored explicit-client options

Documentation & Other Changes

  • Keep Codex verification for development sandboxed

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.