Skip to content

RealtimeTransportEventTypes

type RealtimeTransportEventTypes = object;
[key: string]: any[]

*

"*": [event: TransportEvent];

A raw event from the transport layer. Allows a user to tap directly into the events of the transport layer.


audio: [event: TransportLayerAudio];

Triggered when there is new audio data available. Might not be triggered if the transport layer handles the audio internally (WebRTC).


audio_done: [];

Triggered when the audio generation is done.


audio_interrupted: [];

Triggered when the model detected that it was interrupted. This can be used by the client to stop audio playback.


audio_transcript_delta: [deltaEvent: TransportLayerTranscriptDelta];

Triggered when there is a new text delta of the transcript available.


connection_change: [status: ConnectionStatus];

Triggered whenever the connection status of the transport changes. Emits the new status after the change.


error: [error: TransportError];

Triggered if the model / transport layer encountered an error


function_call: [event: TransportToolCallEvent];

Triggered when the model is trying to call a function.


item_deleted: [item: RealtimeBaseItem];

Triggered when an item is deleted.


item_update: [item: RealtimeItem];

Triggered when the history is added or updated.


mcp_approval_request: [approvalRequest: RealtimeMcpCallApprovalRequestItem];

Triggered when a remote MCP tool requires approval.


mcp_tool_call_completed: [toolCall: RealtimeMcpCallItem];

Triggered when an MCP tool call is completed.


mcp_tools_listed: [event: object];

Triggered when a remote MCP server lists its tools (via mcp_list_tools).


output_text_delta: [deltaEvent: TransportLayerOutputTextDelta];

Triggered when there is a new text output delta available.


turn_done: [event: TransportLayerResponseCompleted];

Triggered when the model is done generating a response for a turn.


turn_started: [event: TransportLayerResponseStarted];

Triggered when the model starts generating a response for a turn.


usage_update: [usage: Usage];

Triggered when the usage update is available.