OpenAI Agents SDK JavaScript v0.22.0-alpha.2
OpenAI Agents SDK for JavaScript v0.22.0-alpha.2 introduces native tools (fileSearch, codeInterpreter, imageGeneration), exact-step steering, session state recovery via SessionStore, and an A2A 1.0 adapter. It also shifts default executor write policies to 'strict' and removes experimental migration bridges.
Why this signal matters
The v0.22.0-alpha.2 release of the OpenAI Agents SDK for JavaScript adds native implementations for fileSearch(), codeInterpreter() (with allowedCallers), and imageGeneration() with retained provider outputs and streamed progress. Active work execution can be controlled via turn.steerExact(), maxModelSteps, and optional RunBudgets based on tokens, root requests, and estimated cost. State persistence is introduced via application-managed SessionStore (and local fileSessionStore()), alongside support for A2A 1.0 agent interconnection via JSON-RPC polling. Major architectural changes include moving the native runtime into @openai/agents-codex, deprecating SDKRunner and @openai/agents/migration imports, and defaulting new environments to writePolicy: 'strict'. MCP resource and prompt inspection are also supported on idle Sessions.
Actionable summary
OpenAI Agents SDK JS v0.22.0-alpha.2 adds native fileSearch, codeInterpreter, and imageGeneration tools; provides turn.steerExact() and RunBudget controls; adds A2A 1.0 JSON-RPC interoperability; defaults environment execution to writePolicy: 'strict'; and removes SDKRunner and @openai/agents/migration.
- Agent usefulness
- 77/100
- Confidence
- 96%
- Canonical data
- JSON + Markdown
What builders should check
- Upgrade all five bundled SDK packages in sync: @openai/agents, @openai/agents-codex, @openai/agents-core, @openai/agents-openai, and @openai/agents-realtime.
- Remove deprecated SDKRunner bridge and @openai/agents/migration imports; migrate to native Agent, Session, and Turn APIs or move legacy code to @openai/agents/classic.
- Review executor write policies: update older checkpoints with writePolicy: 'legacy' if needed to restore with an executor, or start a new conversation to adopt the new default writePolicy: 'strict'.