Module: OpenAI::Models::Graders::ScoreModelGrader::Input::Content
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/openai/models/graders/score_model_grader.rb,
sig/openai/models/graders/score_model_grader.rbs
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.
Defined Under Namespace
Classes: InputImage, OutputText
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text:, type: :output_text) ⇒ Object
A text output from the model.
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::Graders::ScoreModelGrader::Input::content]
186 |
# File 'sig/openai/models/graders/score_model_grader.rbs', line 186
def self?.variants: -> ::Array[OpenAI::Models::Graders::ScoreModelGrader::Input::content]
|
Instance Method Details
#initialize(text:, type: :output_text) ⇒ Object
A text output from the model.
|
|
# File 'lib/openai/models/graders/score_model_grader.rb', line 143
|