Class GraderRunParams.Body
-
- All Implemented Interfaces:
public final class GraderRunParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classGraderRunParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final GraderRunParams.Gradergrader()The grader used for the fine-tuning job. final StringmodelSample()The model sample to be evaluated. final JsonValue_item()The dataset item provided to the grader. final JsonField<GraderRunParams.Grader>_grader()Returns the raw JSON value of grader. final JsonField<String>_modelSample()Returns the raw JSON value of modelSample. final Map<String, JsonValue>_additionalProperties()final GraderRunParams.Body.BuildertoBuilder()final GraderRunParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static GraderRunParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
grader
final GraderRunParams.Grader grader()
The grader used for the fine-tuning job.
-
modelSample
final 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.
-
_item
final JsonValue _item()
The dataset item provided to the grader. This will be used to populate the
itemnamespace. See the guide for more details.This arbitrary value can be deserialized into a custom type using the
convertmethod:MyClass myObject = body.item().convert(MyClass.class);
-
_grader
final JsonField<GraderRunParams.Grader> _grader()
Returns the raw JSON value of grader.
Unlike grader, this method doesn't throw if the JSON field has an unexpected type.
-
_modelSample
final JsonField<String> _modelSample()
Returns the raw JSON value of modelSample.
Unlike modelSample, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final GraderRunParams.Body.Builder toBuilder()
-
validate
final GraderRunParams.Body validate()
-
builder
final static GraderRunParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.grader() .modelSample()
-
-
-
-