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(pull : JSON::PullParser)
Sourcenew(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)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
input
A list of chat messages forming the prompt or context. May include variable references to the item namespace, ie {{item.name}}.
A list of chat messages forming the prompt or context. May include variable references to the item namespace, ie {{item.name}}.
The labels that indicate a passing result. Must be a subset of labels.
type_value=(type_value : CreateEvalLabelModelGraderType)
The object type, which is always label_model.