Class: OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/evals/run_cancel_response.rb

Defined Under Namespace

Modules: Content, Role, Type

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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, 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(text: , type: :output_text) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem::Content::OutputText for more details.

A text output from the model.

Parameters:

  • text (String) (defaults to: )

    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/evals/run_cancel_response.rb', line 481

Instance Attribute Details

#contentString, ...

Text inputs to the model - can contain template strings.



463
464
# File 'lib/openai/models/evals/run_cancel_response.rb', line 463

required :content,
union: -> { OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem::Content }

#roleSymbol, OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem::Role

The role of the message input. One of ‘user`, `assistant`, `system`, or `developer`.



471
472
# File 'lib/openai/models/evals/run_cancel_response.rb', line 471

required :role,
enum: -> { OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem::Role }

#typeSymbol, ...

The type of the message input. Always ‘message`.



478
479
# File 'lib/openai/models/evals/run_cancel_response.rb', line 478

optional :type,
enum: -> { OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::InputMessages::Template::Template::EvalItem::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/evals/run_cancel_response.rb', line 554