Class: OpenAI::Models::Beta::ChatKit::ChatKitThreadUserMessageItem::Content::QuotedText

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/chatkit/chatkit_thread_user_message_item.rb,
sig/openai/models/beta/chatkit/chatkit_thread_user_message_item.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

#initializeQuotedText

Returns a new instance of QuotedText.

Parameters:

  • text: (String)
  • type: (:quoted_text)


84
# File 'sig/openai/models/beta/chatkit/chatkit_thread_user_message_item.rbs', line 84

def initialize: (text: String, ?type: :quoted_text) -> void

Instance Attribute Details

#textString

Quoted text content.

Parameters:

  • value (String)

Returns:

  • (String)


115
# File 'lib/openai/models/beta/chatkit/chatkit_thread_user_message_item.rb', line 115

required :text, String

#typeSymbol, :quoted_text

Type discriminator that is always quoted_text.

Parameters:

  • value (:quoted_text)

Returns:

  • (Symbol, :quoted_text)


121
# File 'lib/openai/models/beta/chatkit/chatkit_thread_user_message_item.rb', line 121

required :type, const: :quoted_text

Instance Method Details

#to_hash{ text: String, type: :quoted_text }

Returns:

  • ({ text: String, type: :quoted_text })


86
# File 'sig/openai/models/beta/chatkit/chatkit_thread_user_message_item.rbs', line 86

def to_hash: -> { text: String, type: :quoted_text }