class

OpenAI::ResponseCompletedEvent

Inherits JSON::Serializable < Reference < Object

Emitted when the model response is complete.

Constructors

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

Instance methods

response

Properties of the completed response.

Source
response=(response : Response)

Properties of the completed response.

Source
sequence_number

The sequence number for this event.

Source
sequence_number=(sequence_number : Int64)

The sequence number for this event.

Source
type_value

The type of the event. Always response.completed.

Source
type_value=(type_value : ResponseCompletedEventType)

The type of the event. Always response.completed.

Source