Class: OpenAI::Models::Beta::AssistantStreamEvent::ThreadMessageCreated
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::AssistantStreamEvent::ThreadMessageCreated
- Defined in:
- lib/openai/models/beta/assistant_stream_event.rb,
sig/openai/models/beta/assistant_stream_event.rbs
Instance Attribute Summary collapse
-
#data ⇒ OpenAI::Models::Beta::Threads::Message
Represents a message within a thread.
- #event ⇒ Symbol, :"thread.message.created"
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
420 |
# File 'sig/openai/models/beta/assistant_stream_event.rbs', line 420
def initialize: (
|
Instance Attribute Details
#data ⇒ OpenAI::Models::Beta::Threads::Message
Represents a message within a thread.
582 |
# File 'lib/openai/models/beta/assistant_stream_event.rb', line 582 required :data, -> { OpenAI::Beta::Threads::Message } |
#event ⇒ Symbol, :"thread.message.created"
587 |
# File 'lib/openai/models/beta/assistant_stream_event.rb', line 587 required :event, const: :"thread.message.created" |
Instance Method Details
#to_hash ⇒ {
425 |
# File 'sig/openai/models/beta/assistant_stream_event.rbs', line 425
def to_hash: -> {
|