0.7.2
A patch release. It changes the event stream only for hosts on @openai/agents 0.8.0 or earlier; streams from 0.8.1 on, including the default 0.18.0, are unchanged. The wire version stays 1.0.0-draft.4.
OpenAI Agents SDK
- An ignored handoff closes its nested turn at its result. When the model requests several handoffs in one response, the SDK runs only the first. On
@openai/agents0.8.0 and earlier it streams a result for each ignored call (“Multiple handoffs detected, ignoring this one.”). The ignored handoff’s nested turn, opened at itshandoff_requested, now closes at that result, withturn.abortand thensubagent.done, before the call’stool.done. In 0.7.1 it stayed open until flush aborted it. Thisturn.abortcarries noreason. - With several handoffs open, each is matched to its own call, and the
handoffevent belongs to the source turn. Before, it could attach to the first handoff’s nested turn, which had already closed. A stream with a single handoff is unchanged. - From 0.8.1 the SDK doesn’t stream the ignored calls at all, so the parallel-handoff limit described in 0.7.1 still applies there: the source turn ends with
turn.abort(stream-truncated) at flush.
Spec
1.0.0-draft.4gains a clarification, with no version change: a state patch or snapshot that is itself a credential object is omitted whole and emitted as{}(§8.0 item 28(b)). The reference Google ADK package already behaved this way, so nothing changes on the wire.
The compatibility tables on each npm page are unchanged.