Class: OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::InputMessages::Template

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

Defined Under Namespace

Modules: Template

Instance Attribute 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(template: , type: :template) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::InputMessages::Template for more details.

Parameters:



# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 242

Instance Attribute Details

#templateArray<OpenAI::Models::Responses::EasyInputMessage, OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::InputMessages::Template::Template::Message>

A list of chat messages forming the prompt or context. May include variable references to the ‘item` namespace, ie OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::InputMessages::Template.{item{item.name}.



231
232
233
234
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 231

required :template,
-> {
  OpenAI::Internal::Type::ArrayOf[union: OpenAI::Evals::CreateEvalCompletionsRunDataSource::InputMessages::Template::Template]
}

#typeSymbol, :template

The type of input messages. Always ‘template`.

Returns:

  • (Symbol, :template)


240
# File 'lib/openai/models/evals/create_eval_completions_run_data_source.rb', line 240

required :type, const: :template