Class GraderRunParams.Body.Builder
-
- All Implemented Interfaces:
public final class GraderRunParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
grader
final GraderRunParams.Body.Builder grader(GraderRunParams.Grader grader)
The grader used for the fine-tuning job.
-
grader
final GraderRunParams.Body.Builder grader(JsonField<GraderRunParams.Grader> grader)
Sets Builder.grader to an arbitrary JSON value.
You should usually call Builder.grader with a well-typed Grader value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
grader
final GraderRunParams.Body.Builder grader(StringCheckGrader stringCheck)
Alias for calling grader with
Grader.ofStringCheck(stringCheck).
-
grader
final GraderRunParams.Body.Builder grader(TextSimilarityGrader textSimilarity)
Alias for calling grader with
Grader.ofTextSimilarity(textSimilarity).
-
grader
final GraderRunParams.Body.Builder grader(PythonGrader python)
Alias for calling grader with
Grader.ofPython(python).
-
grader
final GraderRunParams.Body.Builder grader(ScoreModelGrader scoreModel)
Alias for calling grader with
Grader.ofScoreModel(scoreModel).
-
grader
final GraderRunParams.Body.Builder grader(MultiGrader multi)
Alias for calling grader with
Grader.ofMulti(multi).
-
modelSample
final GraderRunParams.Body.Builder modelSample(String modelSample)
The model sample to be evaluated. This value will be used to populate the
samplenamespace. See the guide for more details. Theoutput_jsonvariable will be populated if the model sample is a valid JSON string.
-
modelSample
final GraderRunParams.Body.Builder modelSample(JsonField<String> modelSample)
Sets Builder.modelSample to an arbitrary JSON value.
You should usually call Builder.modelSample with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
item
final GraderRunParams.Body.Builder item(JsonValue item)
The dataset item provided to the grader. This will be used to populate the
itemnamespace. See the guide for more details.
-
additionalProperties
final GraderRunParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final GraderRunParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final GraderRunParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final GraderRunParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final GraderRunParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final GraderRunParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.grader() .modelSample()
-
-
-
-