Class: OpenAI::Models::Realtime::ConversationItemDone

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/conversation_item_done.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(event_id:, item:, previous_item_id: nil, type: :"conversation.item.done") ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Realtime::ConversationItemDone for more details.

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.

Parameters:



# File 'lib/openai/models/realtime/conversation_item_done.rb', line 32

Instance Attribute Details

#event_idString

The unique ID of the server event.

Returns:

  • (String)


11
# File 'lib/openai/models/realtime/conversation_item_done.rb', line 11

required :event_id, String

#previous_item_idString?

The ID of the item that precedes this one, if any. This is used to maintain ordering when items are inserted.

Returns:

  • (String, nil)


30
# File 'lib/openai/models/realtime/conversation_item_done.rb', line 30

optional :previous_item_id, String, nil?: true

#typeSymbol, :"conversation.item.done"

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

Returns:

  • (Symbol, :"conversation.item.done")


23
# File 'lib/openai/models/realtime/conversation_item_done.rb', line 23

required :type, const: :"conversation.item.done"