class

OpenAI::RealtimeServerEventSessionCreated

Inherits JSON::Serializable < Reference < Object

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.

Constructors

new(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, session : RealtimeServerEventSessionCreatedSession = RealtimeSessionCreateRequestGA.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

event_id

The unique ID of the server event.

Source
event_id=(event_id : String)

The unique ID of the server event.

Source
session

The session configuration.

Source
session=(session : RealtimeServerEventSessionCreatedSession)

The session configuration.

Source
type_value

The event type, must be session.created.

Source
type_value=(type_value : Hash(String, JSON::Any))

The event type, must be session.created.

Source