Class EvalListResponse.TestingCriterion.EvalGraderScoreModel
-
- All Implemented Interfaces:
public final class EvalListResponse.TestingCriterion.EvalGraderScoreModel
A ScoreModelGrader object that uses a model to assign a score to the input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
EvalListResponse.TestingCriterion.EvalGraderScoreModel.Builder
A builder for EvalGraderScoreModel.
-
Method Summary
-
-
Method Detail
-
toScoreModelGrader
final ScoreModelGrader toScoreModelGrader()
-
input
final List<ScoreModelGrader.Input> input()
The input text. This may include template strings.
-
_type
final JsonValue _type()
The object type, which is always
score_model
.Expected to always return the following:
JsonValue.from("score_model")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
samplingParams
final Optional<ScoreModelGrader.SamplingParams> samplingParams()
The sampling parameters for the model.
-
passThreshold
final Optional<Double> passThreshold()
The threshold for the score.
-
_input
final JsonField<List<ScoreModelGrader.Input>> _input()
Returns the raw JSON value of input.
Unlike input, 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.
-
_range
final JsonField<List<Double>> _range()
Returns the raw JSON value of range.
Unlike range, this method doesn't throw if the JSON field has an unexpected type.
-
_samplingParams
final JsonField<ScoreModelGrader.SamplingParams> _samplingParams()
Returns the raw JSON value of samplingParams.
Unlike samplingParams, this method doesn't throw if the JSON field has an unexpected type.
-
_passThreshold
final JsonField<Double> _passThreshold()
Returns the raw JSON value of passThreshold.
Unlike passThreshold, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EvalListResponse.TestingCriterion.EvalGraderScoreModel.Builder toBuilder()
-
validate
final EvalListResponse.TestingCriterion.EvalGraderScoreModel validate()
-
builder
final static EvalListResponse.TestingCriterion.EvalGraderScoreModel.Builder builder()
Returns a mutable builder for constructing an instance of EvalGraderScoreModel.
The following fields are required:
.input() .model() .name()
-
-
-
-