Skip to content
Developer Preview

SessionEventsOptions

Options for Session.events().

Property Type Stability Presence Description
signal AbortSignal optional Aborting it ends the stream, as return() does.
subagents boolean optional Also yield each running sub-agent’s events, tagged with subagent, in arrival order with this session’s own. The client follows each sub-agent’s session while such a stream is open. Needs a session MuseClient opened. Known limitation: if the host refuses the subscription to a sub-agent (usually because it already finished), its steps do not arrive and no reason is given; its start and result still arrive on the session. A sub-agent resumed after it finished a turn is not subscribed again.
Source

clients/sdk-ts/src/facade/session.ts:524

{
"kind": "Interface",
"canonicalPath": "SessionEventsOptions"
}