Skip to content

v0.4.0

Choose a tag to compare

@seratch seratch released this 18 Jan 23:17
· 91 commits to main since this release
2d96044

Key Changes

Drop Zod v3 support and require Zod v4 for schema-based tools and outputs

Starting with this version, we have dropped support for Zod v3 and now require Zod v4 for schema-based tools and outputs. Please use zod@4 instead of zod@3. If you use this SDK in vanilla JavaScript and do not rely on the TypeScript compiler, the SDK will still work with the Zod v3 runtime.

Make @ai-sdk/provider an optional peer dependency to support v2 and v3 formats

The @ai-sdk/provider dependency was previously a required dependency of the openai/agents-extensions package, but it is now an optional peer dependency. This breaking change is primarily intended to support both v2 and v3 formats. In addition, changing how the dependency is loaded allows developers to use the latest major version without waiting for this SDK to migrate.

Update gpt-5.1/5.2 defaults and reasoning effort types

This change is more minor than the two above. We updated the default reasoning effort for gpt-5.1 and gpt-5.2 to "none". When you use gpt-5.1 or gpt-5.2, the default reasoning effort is now "none", which is better suited for interactive agent apps. If you intentionally relied on "low" effort (the default in v0.3), please explicitly pass your own ModelSettings with reasoning.effort="low".

What's Changed

  • feat: #561 Drop Zod v3 support and require Zod v4 for schema-based tools and outputs by @seratch in #860
  • chore: #868 make @ai-sdk/provider an optional peer dependency to support v2 and v3 formats by @seratch in #872
  • feat(agents-core): update gpt-5.1/5.2 defaults and reasoning effort types by @seratch in #876

Documents & Others

  • docs: experimental codex tool document by @seratch in #870
  • docs: update a few document pages by @seratch in #874
  • Update all translated document pages by @github-actions[bot] in #875
  • Update all translated document pages by @github-actions[bot] in #877
  • Update all translated document pages by @github-actions[bot] in #871
  • ci: optimize doc translation workflow by @seratch in #873
  • chore: update versions by @github-actions[bot] in #869

Full Changelog: v0.3.9...v0.4.0