Module: OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel::Input

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

Overview

A chat message that makes up the prompt or context. May include variable references to the ‘item` namespace, ie {item{item.name}.

Defined Under Namespace

Classes: EvalItem, SimpleInputMessage

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, type_info

Instance Method Details

#initialize(content: , role: ) ⇒ Object

Parameters:

  • content (String) (defaults to: )

    The content of the message.

  • role (String) (defaults to: )

    The role of the message (e.g. “system”, “assistant”, “user”).



# File 'lib/openai/models/eval_create_params.rb', line 275