Class EvalLabelModelGrader.Builder
-
- All Implemented Interfaces:
public final class EvalLabelModelGrader.Builder
A builder for EvalLabelModelGrader.
-
-
Method Summary
-
-
Method Detail
-
input
final EvalLabelModelGrader.Builder input(List<EvalLabelModelGrader.Input> input)
-
input
final EvalLabelModelGrader.Builder input(JsonField<List<EvalLabelModelGrader.Input>> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed
List<Input>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addInput
final EvalLabelModelGrader.Builder addInput(EvalLabelModelGrader.Input input)
Adds a single Input to Builder.input.
-
labels
final EvalLabelModelGrader.Builder labels(List<String> labels)
The labels to assign to each item in the evaluation.
-
labels
final EvalLabelModelGrader.Builder labels(JsonField<List<String>> labels)
Sets Builder.labels to an arbitrary JSON value.
You should usually call Builder.labels with a well-typed
List<String>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addLabel
final EvalLabelModelGrader.Builder addLabel(String label)
-
model
final EvalLabelModelGrader.Builder model(String model)
The model to use for the evaluation. Must support structured outputs.
-
model
final EvalLabelModelGrader.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final EvalLabelModelGrader.Builder name(String name)
The name of the grader.
-
name
final EvalLabelModelGrader.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
passingLabels
final EvalLabelModelGrader.Builder passingLabels(List<String> passingLabels)
The labels that indicate a passing result. Must be a subset of labels.
-
passingLabels
final EvalLabelModelGrader.Builder passingLabels(JsonField<List<String>> passingLabels)
Sets Builder.passingLabels to an arbitrary JSON value.
You should usually call Builder.passingLabels with a well-typed
List<String>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addPassingLabel
final EvalLabelModelGrader.Builder addPassingLabel(String passingLabel)
Adds a single String to passingLabels.
-
type
final EvalLabelModelGrader.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("label_model")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final EvalLabelModelGrader.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final EvalLabelModelGrader.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final EvalLabelModelGrader.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final EvalLabelModelGrader.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final EvalLabelModelGrader.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final EvalLabelModelGrader build()
Returns an immutable instance of EvalLabelModelGrader.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.input() .labels() .model() .name() .passingLabels()
-
-
-
-