Class GraderRunParams.Body
-
- All Implemented Interfaces:
public final class GraderRunParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
GraderRunParams.Body.Builder
A builder for Body.
-
Method Summary
Modifier and Type Method Description final GraderRunParams.Grader
grader()
The grader used for the fine-tuning job. final String
modelSample()
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.Builder
toBuilder()
final GraderRunParams.Body
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static GraderRunParams.Body.Builder
builder()
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
sample
namespace. See the guide for more details. Theoutput_json
variable 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
item
namespace. See the guide for more details.
-
_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()
-
-
-
-