Module: OpenAI::Models::Beta::InputContentParam

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/beta/input_content_param.rb,
sig/openai/models/beta/input_content_param.rbs

Overview

Content included in an input message.

Defined Under Namespace

Classes: InputImage, InputText

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump

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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Class Method Details

.variants ⇒ Array(OpenAI::Models::Beta::InputContentParam::InputText, OpenAI::Models::Beta::InputContentParam::InputImage)



# File 'lib/openai/models/beta/input_content_param.rb', line 64

Instance Method Details

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

Text input to the model.

Parameters:

  • text (String) —

    The text sent to the model.

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

    The type of the object. Always input_text.



# File 'lib/openai/models/beta/input_content_param.rb', line 31