class

OpenAI::ResponseFailedEvent

Inherits JSON::Serializable < Reference < Object

An event that is emitted when a response fails.

Constructors

new(type_value : ResponseFailedEventType = ResponseFailedEventType::ResponseFailed, sequence_number : Int64 = 0, response : Response = Response.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

response

The response that failed.

Source
response=(response : Response)

The response that failed.

Source
sequence_number

The sequence number of this event.

Source
sequence_number=(sequence_number : Int64)

The sequence number of this event.

Source
type_value

The type of the event. Always response.failed.

Source
type_value=(type_value : ResponseFailedEventType)

The type of the event. Always response.failed.

Source