LiveServerEventLiveSessionClosed interface
Returned after the Live session finishes finalizing, with the close reason, final session snapshot, and cumulative audio usage. A connection closing without this event does not confirm successful finalization.
- Extends
Properties
| client_event_id | The event_id of the client command associated with this server event, when supplied. |
| event_id | The unique ID of the Live server event. |
| reason | Why the Live session ended: |
| session | The final Live session snapshot. Its status remains active; the session.closed event indicates closure. |
| type | The event type, always |
| usage | The final cumulative Live audio usage after session finalization. |
Property Details
client_event_id
The event_id of the client command associated with this server event, when supplied.
client_event_id?: string
Property Value
string
event_id
The unique ID of the Live server event.
event_id: string
Property Value
string
reason
Why the Live session ended: close_requested for an application close or hangup request, expired for the session duration limit, content for a safety filter, remote_hangup for a graceful remote disconnect, or connection_lost for an unexpected primary or upstream disconnection.
reason: "expired" | "close_requested" | "content" | "remote_hangup" | "connection_lost"
Property Value
"expired" | "close_requested" | "content" | "remote_hangup" | "connection_lost"
session
The final Live session snapshot. Its status remains active; the session.closed event indicates closure.
session: VoiceAgentLiveSessionResource
Property Value
type
The event type, always session.closed.
type: "session.closed"
Property Value
"session.closed"
usage
The final cumulative Live audio usage after session finalization.
usage: LiveSessionUsage