VoiceAgentLiveCloseResult interface
Details reported when a GPT Live connection closes.
- Extends
Properties
| session |
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. |
| was |
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
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