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.

interface SessionCreatedEvent {
    event_id: string;
    session: OpenAIClient.Beta.Realtime.Sessions.Session;
    type: "session.created";
}

Properties

Properties

event_id: string

The unique ID of the server event.

Realtime session object configuration.

type: "session.created"

The event type, must be session.created.