Class: OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel::Input::EvalItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel::Input::EvalItem
- Defined in:
- lib/openai/models/eval_create_params.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#content ⇒ String, ...
Inputs to the model - can contain template strings.
-
#role ⇒ Symbol, OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel::Input::EvalItem::Role
The role of the message input.
-
#type ⇒ Symbol, ...
The type of the message input.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content: , role: , type: nil) ⇒ void
constructor
Some parameter documentations has been truncated, see EvalItem for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(content: , role: , type: nil) ⇒ void
Some parameter documentations has been truncated, see OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel::Input::EvalItem for more details.
A message input to the model with a role indicating instruction following
hierarchy. Instructions given with the developer
or system
role take
precedence over instructions given with the user
role. Messages with the
assistant
role are presumed to have been generated by the model in previous
interactions.
|
# File 'lib/openai/models/eval_create_params.rb', line 310
|
Instance Attribute Details
#content ⇒ String, ...
Inputs to the model - can contain template strings.
286 287 288 289 |
# File 'lib/openai/models/eval_create_params.rb', line 286 required :content, union: -> { OpenAI::EvalCreateParams::TestingCriterion::LabelModel::Input::EvalItem::Content } |
#role ⇒ Symbol, OpenAI::Models::EvalCreateParams::TestingCriterion::LabelModel::Input::EvalItem::Role
The role of the message input. One of user
, assistant
, system
, or
developer
.
296 297 298 299 |
# File 'lib/openai/models/eval_create_params.rb', line 296 required :role, enum: -> { OpenAI::EvalCreateParams::TestingCriterion::LabelModel::Input::EvalItem::Role } |
#type ⇒ Symbol, ...
The type of the message input. Always message
.
305 306 307 308 |
# File 'lib/openai/models/eval_create_params.rb', line 305 optional :type, enum: -> { OpenAI::EvalCreateParams::TestingCriterion::LabelModel::Input::EvalItem::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/openai/models/eval_create_params.rb', line 430
|