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