RealtimeServerEventSessionCreated interface

Returned when a Session is created. Emitted automatically when a new connection is established as the first server event. This event will contain the default Session configuration.

Extends

Properties

conversation_id

The session-scoped conversation id. When present, responses attached to the session conversation use the same value in response.created and response.done.

event_id

The unique ID of the server event.

session

The session configuration.

type

The event type, must be session.created.

Property Details

conversation_id

The session-scoped conversation id. When present, responses attached to the session conversation use the same value in response.created and response.done.

conversation_id?: string

Property Value

string

event_id

The unique ID of the server event.

event_id: string

Property Value

string

session

The session configuration.

session: VoiceAgentSessionResponse

Property Value

type

The event type, must be session.created.

type: "session.created"

Property Value

"session.created"