class

OpenAI::RealtimeBetaServerEventResponseOutputItemAdded

Inherits JSON::Serializable < Reference < Object

Returned when a new Item is created during Response generation.

Constructors

new(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, response_id : String = "", output_index : Int64 = 0, item : RealtimeConversationItem = RealtimeConversationItemMessageSystem.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
item
Source
item=(item : RealtimeConversationItem)
Source
output_index

The index of the output item in the Response.

Source
output_index=(output_index : Int64)

The index of the output item in the Response.

Source
response_id

The ID of the Response to which the item belongs.

Source
response_id=(response_id : String)

The ID of the Response to which the item belongs.

Source
type_value

The event type, must be response.output_item.added.

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

The event type, must be response.output_item.added.

Source