github openai/openai-agents-js v0.14.0

5 hours ago

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

  • feat: add Programmatic Tool Calling support by @seratch in #1472
  • feat: add task and turn tracing spans by @seratch in #1488
  • feat(extensions): add Vercel cloud bucket mounts by @seratch in #1501
  • feat: disable sensitive data logging by default by @seratch in #1517
    • fix: honor sensitive logging flags across runtime paths by @seratch in #1516
    • fix: redact sensitive tool and model data from error logs by @seratch in #1512
  • fix: distinguish missing sandbox paths from inaccessible files by @seratch in #1514
  • fix: fail closed on invalid dynamic tool approval arguments by @seratch in #1511
  • fix: preserve assistant message phases across Responses history and replay by @seratch in #1513
  • fix(core): wait for cancelled stream cleanup before resolving completion by @seratch in #1527
  • fix(core): propagate non-streaming run cancellation to function tools by @seratch in #1528
  • fix(core): propagate streamed cancellation to function tools by @seratch in #1529
  • fix(core): propagate cancellation to MCP tool requests by @seratch in #1532
  • fix(core): parse SELinux permission markers by @seratch in #1504
  • fix(extensions): preserve AI SDK v3 image tool outputs by @seratch in #1492
  • fix(extensions): support AI SDK v4 models by @akim136 in #1500
  • fix(extensions): pin and verify rclone sandbox installs by @seratch in #1508
  • fix(extensions): flush pending assistant message before user/system turns in ai-sdk integration by @yotam2010 in #1507
  • fix(extensions): preserve refusal messages in AI SDK history by @seratch in #1524

Documentation & Other Changes

  • docs: improve semantic validation flows for examples by @seratch in #1496
  • test(integration): exercise AI SDK v4 tool loops by @seratch in #1503
  • test: add published SDK behavior integration coverage by @seratch in #1519
  • chore: upgrade pnpm toolchain by @seratch in #1502
  • chore: add sensitive logging audit skill by @seratch in #1515
  • chore: upgrade pnpm toolchain by @seratch in #1533
  • chore: update versions by @github-actions[bot] in #1491

New Contributors

Full Changelog: v0.13.5...v0.14.0

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

NewReleases is sending notifications on new releases.