class

OpenAI::CreateEvalCompletionsRunDataSource

Inherits JSON::Serializable < Reference < Object

A CompletionsRunDataSource object describing a model sampling configuration.

Constructors

new(type_value : CreateEvalCompletionsRunDataSourceType = CreateEvalCompletionsRunDataSourceType::Completions, input_messages : CreateEvalCompletionsRunDataSourceInputMessages | Nil = nil, sampling_params : CreateEvalCompletionsRunDataSourceSamplingParams | Nil = nil, model : String | Nil = nil, source : CreateEvalCompletionsRunDataSourceSource = EvalJsonlFileContentSource.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

input_messages

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.

Source
input_messages=(input_messages : CreateEvalCompletionsRunDataSourceInputMessages | Nil)

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.

Source
model

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

Source
model=(model : String | Nil)

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

Source
sampling_params
Source
sampling_params=(sampling_params : CreateEvalCompletionsRunDataSourceSamplingParams | Nil)
Source
source

Determines what populates the item namespace in this run's data source.

Source
source=(source : CreateEvalCompletionsRunDataSourceSource)

Determines what populates the item namespace in this run's data source.

Source
type_value

The type of run data source. Always completions.

Source
type_value=(type_value : CreateEvalCompletionsRunDataSourceType)

The type of run data source. Always completions.

Source