Class EvalCreateParams.TestingCriterion.ScoreModel.Builder
-
- All Implemented Interfaces:
public final class EvalCreateParams.TestingCriterion.ScoreModel.Builder
A builder for ScoreModel.
-
-
Method Summary
-
-
Method Detail
-
input
final EvalCreateParams.TestingCriterion.ScoreModel.Builder input(List<ScoreModelGrader.Input> input)
The input text. This may include template strings.
-
input
final EvalCreateParams.TestingCriterion.ScoreModel.Builder input(JsonField<List<ScoreModelGrader.Input>> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed
List<ScoreModelGrader.Input>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addInput
final EvalCreateParams.TestingCriterion.ScoreModel.Builder addInput(ScoreModelGrader.Input input)
Adds a single ScoreModelGrader.Input to Builder.input.
-
model
final EvalCreateParams.TestingCriterion.ScoreModel.Builder model(String model)
The model to use for the evaluation.
-
model
final EvalCreateParams.TestingCriterion.ScoreModel.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.ScoreModel.Builder name(String name)
The name of the grader.
-
name
final EvalCreateParams.TestingCriterion.ScoreModel.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.
-
type
final EvalCreateParams.TestingCriterion.ScoreModel.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("score_model")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
range
final EvalCreateParams.TestingCriterion.ScoreModel.Builder range(List<Double> range)
The range of the score. Defaults to
[0, 1]
.
-
range
final EvalCreateParams.TestingCriterion.ScoreModel.Builder range(JsonField<List<Double>> range)
Sets Builder.range to an arbitrary JSON value.
You should usually call Builder.range with a well-typed
List<Double>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addRange
final EvalCreateParams.TestingCriterion.ScoreModel.Builder addRange(Double range)
Adds a single Double to Builder.range.
-
samplingParams
final EvalCreateParams.TestingCriterion.ScoreModel.Builder samplingParams(JsonValue samplingParams)
The sampling parameters for the model.
-
passThreshold
final EvalCreateParams.TestingCriterion.ScoreModel.Builder passThreshold(Double passThreshold)
The threshold for the score.
-
passThreshold
final EvalCreateParams.TestingCriterion.ScoreModel.Builder passThreshold(JsonField<Double> passThreshold)
Sets Builder.passThreshold to an arbitrary JSON value.
You should usually call Builder.passThreshold with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final EvalCreateParams.TestingCriterion.ScoreModel.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final EvalCreateParams.TestingCriterion.ScoreModel.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final EvalCreateParams.TestingCriterion.ScoreModel.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final EvalCreateParams.TestingCriterion.ScoreModel.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final EvalCreateParams.TestingCriterion.ScoreModel.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final EvalCreateParams.TestingCriterion.ScoreModel build()
Returns an immutable instance of ScoreModel.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.input() .model() .name()
-
-
-
-