Class: OpenAI::Models::Beta::AssistantStreamEvent::ThreadMessageInProgress

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/assistant_stream_event.rb,
sig/openai/models/beta/assistant_stream_event.rbs

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

#initializeObject



442
# File 'sig/openai/models/beta/assistant_stream_event.rbs', line 442

def initialize: (

Instance Attribute Details

#dataOpenAI::Models::Beta::Threads::Message

Represents a message within a thread.

Parameters:

  • value (OpenAI::Beta::Threads::Message)

Returns:



609
# File 'lib/openai/models/beta/assistant_stream_event.rb', line 609

required :data, -> { OpenAI::Beta::Threads::Message }

#eventSymbol, :"thread.message.in_progress"

Parameters:

  • value (:"thread.message.in_progress")

Returns:

  • (Symbol, :"thread.message.in_progress")


614
# File 'lib/openai/models/beta/assistant_stream_event.rb', line 614

required :event, const: :"thread.message.in_progress"

Instance Method Details

#to_hash{

Returns:

  • ({)


447
# File 'sig/openai/models/beta/assistant_stream_event.rbs', line 447

def to_hash: -> {