Class EvalCreateParams.TestingCriterion.LabelModel
-
- All Implemented Interfaces:
public final class EvalCreateParams.TestingCriterion.LabelModelA LabelModelGrader object which uses a model to assign labels to each item in the evaluation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEvalCreateParams.TestingCriterion.LabelModel.BuilderA builder for LabelModel.
public final classEvalCreateParams.TestingCriterion.LabelModel.InputA chat message that makes up the prompt or context. May include variable references to the
itemnamespace, ie {{item.name}}.
-
Method Summary
Modifier and Type Method Description final List<EvalCreateParams.TestingCriterion.LabelModel.Input>input()A list of chat messages forming the prompt or context. final List<String>labels()The labels to classify to each item in the evaluation. final Stringmodel()The model to use for the evaluation. final Stringname()The name of the grader. final List<String>passingLabels()The labels that indicate a passing result. final JsonValue_type()The object type, which is always label_model.final JsonField<List<EvalCreateParams.TestingCriterion.LabelModel.Input>>_input()Returns the raw JSON value of input. final JsonField<List<String>>_labels()Returns the raw JSON value of labels. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<List<String>>_passingLabels()Returns the raw JSON value of passingLabels. final Map<String, JsonValue>_additionalProperties()final EvalCreateParams.TestingCriterion.LabelModel.BuildertoBuilder()final EvalCreateParams.TestingCriterion.LabelModelvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EvalCreateParams.TestingCriterion.LabelModel.Builderbuilder()Returns a mutable builder for constructing an instance of LabelModel. -
-
Method Detail
-
input
final List<EvalCreateParams.TestingCriterion.LabelModel.Input> input()
A list of chat messages forming the prompt or context. May include variable references to the
itemnamespace, ie {{item.name}}.
-
passingLabels
final List<String> passingLabels()
The labels that indicate a passing result. Must be a subset of labels.
-
_type
final JsonValue _type()
The object type, which is always
label_model.Expected to always return the following:
JsonValue.from("label_model")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_input
final JsonField<List<EvalCreateParams.TestingCriterion.LabelModel.Input>> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_labels
final JsonField<List<String>> _labels()
Returns the raw JSON value of labels.
Unlike labels, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_passingLabels
final JsonField<List<String>> _passingLabels()
Returns the raw JSON value of passingLabels.
Unlike passingLabels, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EvalCreateParams.TestingCriterion.LabelModel.Builder toBuilder()
-
validate
final EvalCreateParams.TestingCriterion.LabelModel validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static EvalCreateParams.TestingCriterion.LabelModel.Builder builder()
Returns a mutable builder for constructing an instance of LabelModel.
The following fields are required:
.input() .labels() .model() .name() .passingLabels()
-
-
-
-