github openai/openai-agents-js v0.4.13

latest releases: v0.12.0, v0.11.8, v0.11.7...
4 months ago

Key Changes

reasoningItemIdPolicy: omit for reasoning models

To mitigate 400 errors caused by an inconsistent set of items when using reasoning models, this release introduces the reasoningItemIdPolicy: 'omit' option for Runner options and the run utility. This is a new, opt-in option, so the default behavior is unchanged.

const result = await run(
  agent,
  'What is the weather in San Francisco?',
  { reasoningItemIdPolicy: 'omit' },
);

What's Changed

  • fix(agents-core): rehydrate RunState interruption items on resume by @seratch in #993
  • fix(agents-core): persist reasoning item ID policy across resumes and clarify filter interaction by @seratch in #991
  • fix(agents-core): await parallel input guardrails before resolving turn in non-streaming run by @panilya in #992

Documents & Other Changes

  • chore: update versions by @github-actions[bot] in #994

New Contributors

Full Changelog: v0.4.12...v0.4.13

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

NewReleases is sending notifications on new releases.