@openai/agents
0.22.0 · 12 Nov 2026MIT2.5M / weekRepositoryHomepagenpmAtom feed
0.22.0 is the newest release of 0.4.x.
In short
1 deprecated3 new1 fixed6 internal
- Deprecated
Both import paths still work for now, but the top-level import is deprecated and will be removed in v0.5.0.
Release note
Key Changes
New utility for multiple MCP server management
Starting with this version, there is a new, convenient way to manage multiple MCP server instances. See #901 and examples/mcp/mcp-servers-example.ts
New import path for aisdk() from @openai/agents-extensions
If you've been using the @openai/agents-extensions package for aisdk() helper, we now recommend importing it from @openai/agents-extensions/ai-sdk. Both import paths still work for now, but the top-level import is deprecated and will be removed in v0.5.0.
AI SDK's useChat compatibility utility under @openai/agents-extensions/ai-sdk-ui
createAiSdkUiMessageStreamResponse from @openai/agents-extensions/ai-sdk-ui enables server routes in React/Next.js apps to stream data that can be consumed by useChat on the frontend. See #899 and examples/ai-sdk-ui.
What's Changed
Add MCPServers lifecycle helper
Add AI SDK data/text stream response adapters for streamed runs
agents-core: Add maxTurns error handlers with runData snapshots
agents-core: Prefer run tracing config when resuming run state
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.