Class: OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses

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

Defined Under Namespace

Modules: InputMessages, Source Classes: SamplingParams

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

Parameters:

  • item_reference (String) (defaults to: )

    A reference to a variable in the ‘item` namespace. Ie, “item.name”

  • type (Symbol, :item_reference) (defaults to: :item_reference)

    The type of input messages. Always ‘item_reference`.



# File 'lib/openai/models/evals/run_retrieve_response.rb', line 185

Instance Attribute Details

#input_messagesOpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::InputMessages::Template, ...

Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie, ‘item.input_trajectory`), or a template with variable references to the `item` namespace.



170
171
# File 'lib/openai/models/evals/run_retrieve_response.rb', line 170

optional :input_messages,
union: -> { OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::InputMessages }

#modelString?

The name of the model to use for generating completions (e.g. “o3-mini”).

Returns:

  • (String, nil)


177
# File 'lib/openai/models/evals/run_retrieve_response.rb', line 177

optional :model, String

#sampling_paramsOpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::SamplingParams?



182
183
# File 'lib/openai/models/evals/run_retrieve_response.rb', line 182

optional :sampling_params,
-> { OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::SamplingParams }

#typeSymbol, :responses

The type of run data source. Always ‘responses`.

Returns:

  • (Symbol, :responses)


161
# File 'lib/openai/models/evals/run_retrieve_response.rb', line 161

required :type, const: :responses