Module: OpenAI::Models::Graders::LabelModelGrader::Input::Content

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/graders/label_model_grader.rb

Overview

Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.

See Also:

Defined Under Namespace

Classes: InputImage, OutputText

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: :output_text) ⇒ Object

Some parameter documentations has been truncated, see OutputText for more details.

A text output from the model.

Parameters:

  • text (String)

    The text output from the model.

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

    The type of the output text. Always ‘output_text`.



# File 'lib/openai/models/graders/label_model_grader.rb', line 134