Packages

@openai/agents

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

Your version

0.14.0

28 Jul 2026Where it was published

0.22.0 is the newest release of 0.14.x.

In short

4 new13 fixed6 internal

Release note

Key Changes

Programmatic Tool Calling support

The SDK now supports Programmatic Tool Calling, allowing supported models to generate hosted JavaScript that coordinates eligible tools and reduces their intermediate results. Program calls are preserved across streaming, sessions, replay, and serialized RunState. Refer to a simple example to see how it works.

Sensitive model and tool data logging is now disabled by default

Model and tool data is no longer logged unless explicitly enabled. Use setSensitiveDataLoggingEnabled(true) to opt in programmatically, or set the corresponding OPENAI_AGENTS_DONT_LOG_* environment variables to 0 or false.

Task and turn tracing is enabled by default

Runs now emit task and turn spans by default, providing a clearer trace hierarchy and usage metadata. Set includeTaskAndTurnSpans to false in the per-run tracing configuration to opt out.

Run cancellation now propagates to function and MCP tools

Cancellation signals now reach streaming and non-streaming function tools as well as MCP tool requests. Stream completion also waits for background work and cleanup to settle before resolving.

AI SDK 7 support

The AI SDK adapter now supports LanguageModelV4 models and AI SDK 7 while preserving existing v2 and v3 compatibility.

Vercel S3 bucket mounts

A new VercelCloudBucketMountStrategy enables S3 buckets to be mounted in Vercel sandboxes using Mountpoint for Amazon S3.

What's Changed

  • Add Programmatic Tool Calling support

  • Add task and turn tracing spans

  • extensions: Add Vercel cloud bucket mounts

  • Disable sensitive data logging by default

    • fix: honor sensitive logging flags across runtime paths

    • fix: redact sensitive tool and model data from error logs

  • Distinguish missing sandbox paths from inaccessible files

  • Fail closed on invalid dynamic tool approval arguments

  • Preserve assistant message phases across Responses history and replay

  • core: Wait for cancelled stream cleanup before resolving completion

  • core: Propagate non-streaming run cancellation to function tools

  • core: Propagate streamed cancellation to function tools

  • core: Propagate cancellation to MCP tool requests

  • core: Parse SELinux permission markers

  • extensions: Preserve AI SDK v3 image tool outputs

  • extensions: Support AI SDK v4 models

  • extensions: Pin and verify rclone sandbox installs

  • extensions: Flush pending assistant message before user/system turns in ai-sdk integration

  • extensions: Preserve refusal messages in AI SDK history

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.