class

OpenAI::EvalRunOutputItemSample

Inherits JSON::Serializable < Reference < Object

A sample containing the input and output of the evaluation run.

Constructors

new(input : Array(EvalRunOutputItemSampleInputItem) = [] of EvalRunOutputItemSampleInputItem, output : Array(EvalRunOutputItemSampleOutputItem) = [] of EvalRunOutputItemSampleOutputItem, finish_reason : String = "", model : String = "", usage : EvalRunOutputItemSampleUsage = EvalRunOutputItemSampleUsage.new, error : EvalApiError = EvalApiError.new, temperature : Float64 = 0.0, max_completion_tokens : Int64 = 0, top_p : Float64 = 0.0, seed : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

error
Source
error=(error : EvalApiError)
Source
finish_reason

The reason why the sample generation was finished.

Source
finish_reason=(finish_reason : String)

The reason why the sample generation was finished.

Source
input

An array of input messages.

Source
input=(input : Array(EvalRunOutputItemSampleInputItem))

An array of input messages.

Source
max_completion_tokens

The maximum number of tokens allowed for completion.

Source
max_completion_tokens=(max_completion_tokens : Int64)

The maximum number of tokens allowed for completion.

Source
model

The model used for generating the sample.

Source
model=(model : String)

The model used for generating the sample.

Source
output

An array of output messages.

Source
output=(output : Array(EvalRunOutputItemSampleOutputItem))

An array of output messages.

Source
seed

The seed used for generating the sample.

Source
seed=(seed : Int64)

The seed used for generating the sample.

Source
temperature

The sampling temperature used.

Source
temperature=(temperature : Float64)

The sampling temperature used.

Source
top_p

The top_p value used for sampling.

Source
top_p=(top_p : Float64)

The top_p value used for sampling.

Source
usage

Token usage details for the sample.

Source
usage=(usage : EvalRunOutputItemSampleUsage)

Token usage details for the sample.

Source