class

OpenAI::ResponseCreatedEvent

Inherits JSON::Serializable < Reference < Object

An event that is emitted when a response is created.

Constructors

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

Instance methods

response

The response that was created.

Source
response=(response : Response)

The response that was created.

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.created.

Source
type_value=(type_value : ResponseCreatedEventType)

The type of the event. Always response.created.

Source