RealtimeAdapterEvent
RealtimeAdapterEvent = {
argumentsJson:string;callId:ToolCallId;name:string;type:"tool_call"; } | {final:boolean;role:"user"|"assistant";text:string;type:"transcript"; } | {type:"speech_started"; } | {state:VoiceSessionState;type:"state"; } |TurnModeEvent| {error:unknown;type:"error"; }
Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:80
Legacy events a RealtimeProviderAdapter emits toward RealtimeSession.
Continuous media and timestamped fragments use the separate
AdapterVoiceObservations channel, preserving exhaustive consumers.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ argumentsJson: string; callId: ToolCallId; name: string; type: "tool_call"; }
Type Literal
Section titled “Type Literal”{ final: boolean; role: "user" | "assistant"; text: string; type: "transcript"; }
Type Literal
Section titled “Type Literal”{ type: "speech_started"; }
Type Literal
Section titled “Type Literal”{ state: VoiceSessionState; type: "state"; }
readonlystate:VoiceSessionState
idle ends the connection lifetime and retires pending voice work;
connected means live turn-idle and does not retire work. Bare error
preserves startup presentation; runtime connection failures must emit
an error event carrying RealtimeVoiceError for terminal cleanup.
readonlytype:"state"
UI-facing provider lifecycle or turn activity.
Type Literal
Section titled “Type Literal”{ error: unknown; type: "error"; }