class

OpenAI::CreateEvalLabelModelGrader

Inherits JSON::Serializable < Reference < Object

A LabelModelGrader object which uses a model to assign labels to each item in the evaluation.

Constructors

new(type_value : CreateEvalLabelModelGraderType = CreateEvalLabelModelGraderType::LabelModel, name : String = "", model : String = "", input : Array(CreateEvalItem) = [] of CreateEvalItem, labels : Array(String) = [] of String, passing_labels : Array(String) = [] of String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

input

A list of chat messages forming the prompt or context. May include variable references to the item namespace, ie {{item.name}}.

Source
input=(input : Array(CreateEvalItem))

A list of chat messages forming the prompt or context. May include variable references to the item namespace, ie {{item.name}}.

Source
labels

The labels to classify to each item in the evaluation.

Source
labels=(labels : Array(String))

The labels to classify to each item in the evaluation.

Source
model

The model to use for the evaluation. Must support structured outputs.

Source
model=(model : String)

The model to use for the evaluation. Must support structured outputs.

Source
name

The name of the grader.

Source
name=(name : String)

The name of the grader.

Source
passing_labels

The labels that indicate a passing result. Must be a subset of labels.

Source
passing_labels=(passing_labels : Array(String))

The labels that indicate a passing result. Must be a subset of labels.

Source
type_value

The object type, which is always label_model.

Source
type_value=(type_value : CreateEvalLabelModelGraderType)

The object type, which is always label_model.

Source