Packages

@openai/agents

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

Your version

0.2.0

24 Oct 2025Where it was published

0.22.0 is the newest release of 0.2.x.

In short

2 new2 fixed4 changed2 internal

Release note

Key Changes

  • Tool outputs can include image/file in OpenAI's standard format (see the examples in the PR description)

  • #609 This SDK now supports both zod 4 and zod 3

After releasing this version, we found that zod 4 support is still incomplete. We'll make this SDK functional with both zod 3 and 4 runtime, but as for the compatibility with TSC type checker, there are still things to work on. For now, please continue using zod 3 along with this SDK. See #617 for more details.

What's Changed

  • Upgrade pnpm to the latest version

  • Upgrade dependencies for dev, docs, and examples

  • #607 make main execution in examples consistent

  • Handoff creation error when using onHandoff without inputType

  • #313 Enable tools to return image/file data to an Agent

  • #561 support both zod3 and zod4

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.