Module: OpenAI::Models::Beta::ChatKit::ChatKitThreadUserMessageItem::Content

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/beta/chatkit/chatkit_thread_user_message_item.rb

Overview

Content blocks that comprise a user message.

Defined Under Namespace

Classes: InputText, QuotedText

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

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

Methods included from Internal::Type::Converter

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

Instance Method Details

#initialize(text:, type: :input_text) ⇒ Object

Text block that a user contributed to the thread.

Parameters:

  • text (String)

    Plain-text content supplied by the user.

  • type (Symbol, :input_text) (defaults to: :input_text)

    Type discriminator that is always ‘input_text`.



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