class

OpenAI::RealtimeServerEventError

Inherits JSON::Serializable < Reference < Object

Returned when an error occurs, which could be a client problem or a server problem. Most errors are recoverable and the session will stay open, we recommend to implementors to monitor and log error messages by default.

Constructors

new(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, error : RealtimeServerEventErrorError = RealtimeServerEventErrorError.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

error

Details of the error.

Source
error=(error : RealtimeServerEventErrorError)

Details of the error.

Source
event_id

The unique ID of the server event.

Source
event_id=(event_id : String)

The unique ID of the server event.

Source
type_value

The event type, must be error.

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

The event type, must be error.

Source