VoiceAgentLiveCloseResult interface

Details reported when a GPT Live connection closes.

Extends

Properties

sessionClosed

Service confirmation that the session finished. If absent, finalization was not confirmed.

Inherited Properties

code

WebSocket close code.

error

Transport or protocol error associated with the close, if any.

reason

WebSocket close reason.

wasClean

Whether the peer completed a normal WebSocket close handshake.

Property Details

sessionClosed

Service confirmation that the session finished. If absent, finalization was not confirmed.

sessionClosed?: LiveServerEventLiveSessionClosed

Property Value

Inherited Property Details

code

WebSocket close code.

code: number

Property Value

number

Inherited From VoiceAgentCloseResult.code

error

Transport or protocol error associated with the close, if any.

error?: Error

Property Value

Error

Inherited From VoiceAgentCloseResult.error

reason

WebSocket close reason.

reason: string

Property Value

string

Inherited From VoiceAgentCloseResult.reason

wasClean

Whether the peer completed a normal WebSocket close handshake.

wasClean: boolean

Property Value

boolean

Inherited From VoiceAgentCloseResult.wasClean