v0.4.2
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
- feat: add MCPServers lifecycle helper by @seratch in #901
- feat: add AI SDK data/text stream response adapters for streamed runs by @seratch in #899
- feat(agents-core): add maxTurns error handlers with runData snapshots by @seratch in #896, #900
- fix(agents-core): prefer run tracing config when resuming run state by @seratch in #895
- test(realtime,core,extensions): add coverage for approvals, tracing, MCP, and codex helpers by @seratch in #890
Documents & Other Changes
- chore(deps): bump the github-actions group with 2 updates by @dependabot[bot] in #889
- docs(sessions): add manual compaction guidance for streaming by @seratch in #892
- docs: update translated document pages by @github-actions[bot] in #893
- chore(deps): bump hono from 4.11.3 to 4.11.4 in the npm_and_yarn group across 1 directory by @dependabot[bot] in #898
- chore: update versions by @github-actions[bot] in #891
Full Changelog: v0.4.1...v0.4.2