Class EvalCreateParams.TestingCriterion.LabelModel.Builder
-
- All Implemented Interfaces:
public final class EvalCreateParams.TestingCriterion.LabelModel.Builder
A builder for LabelModel.
-
-
Method Summary
-
-
Method Detail
-
input
final EvalCreateParams.TestingCriterion.LabelModel.Builder input(List<EvalCreateParams.TestingCriterion.LabelModel.Input> input)
A list of chat messages forming the prompt or context. May include variable references to the
item
namespace, ie {{item.name}}.
-
input
final EvalCreateParams.TestingCriterion.LabelModel.Builder input(JsonField<List<EvalCreateParams.TestingCriterion.LabelModel.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 EvalCreateParams.TestingCriterion.LabelModel.Builder addInput(EvalCreateParams.TestingCriterion.LabelModel.Input input)
Adds a single Input to Builder.input.
-
addInput
final EvalCreateParams.TestingCriterion.LabelModel.Builder addInput(EvalCreateParams.TestingCriterion.LabelModel.Input.SimpleInputMessage simpleInputMessage)
Alias for calling addInput with
Input.ofSimpleInputMessage(simpleInputMessage)
.
-
addInput
final EvalCreateParams.TestingCriterion.LabelModel.Builder addInput(EvalCreateParams.TestingCriterion.LabelModel.Input.EvalItem evalItem)
Alias for calling addInput with
Input.ofEvalItem(evalItem)
.
-
labels
final EvalCreateParams.TestingCriterion.LabelModel.Builder labels(List<String> labels)
The labels to classify to each item in the evaluation.
-
labels
final EvalCreateParams.TestingCriterion.LabelModel.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 EvalCreateParams.TestingCriterion.LabelModel.Builder addLabel(String label)
-
model
final EvalCreateParams.TestingCriterion.LabelModel.Builder model(String model)
The model to use for the evaluation. Must support structured outputs.
-
model
final EvalCreateParams.TestingCriterion.LabelModel.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 EvalCreateParams.TestingCriterion.LabelModel.Builder name(String name)
The name of the grader.
-
name
final EvalCreateParams.TestingCriterion.LabelModel.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 EvalCreateParams.TestingCriterion.LabelModel.Builder passingLabels(List<String> passingLabels)
The labels that indicate a passing result. Must be a subset of labels.
-
passingLabels
final EvalCreateParams.TestingCriterion.LabelModel.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 EvalCreateParams.TestingCriterion.LabelModel.Builder addPassingLabel(String passingLabel)
Adds a single String to passingLabels.
-
type
final EvalCreateParams.TestingCriterion.LabelModel.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 EvalCreateParams.TestingCriterion.LabelModel.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final EvalCreateParams.TestingCriterion.LabelModel.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final EvalCreateParams.TestingCriterion.LabelModel.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final EvalCreateParams.TestingCriterion.LabelModel.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final EvalCreateParams.TestingCriterion.LabelModel.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final EvalCreateParams.TestingCriterion.LabelModel build()
Returns an immutable instance of LabelModel.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.input() .labels() .model() .name() .passingLabels()
-
-
-
-