class

OpenAI::RealtimeServerEventConversationItemDone

Inherits JSON::Serializable < Reference < Object

Returned when a conversation item is finalized.

The event will include the full content of the Item except for audio data, which can be retrieved separately with a conversation.item.retrieve event if needed.

Constructors

new(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, previous_item_id : RealtimeServerEventConversationItemDonePreviousItemId | Nil = nil, 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
previous_item_id
Source
previous_item_id=(previous_item_id : RealtimeServerEventConversationItemDonePreviousItemId | Nil)
Source
type_value

The event type, must be conversation.item.done.

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

The event type, must be conversation.item.done.

Source