Class GraderRunParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class GraderRunParams implements Params
Run a grader.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classGraderRunParams.BuilderA builder for GraderRunParams.
public final classGraderRunParams.Bodypublic final classGraderRunParams.GraderThe grader used for the fine-tuning job.
-
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>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final GraderRunParams.BuildertoBuilder()final GraderRunParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static GraderRunParams.Builderbuilder()Returns a mutable builder for constructing an instance of GraderRunParams. -
-
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 = graderRunParams.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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final GraderRunParams.Builder toBuilder()
-
_body
final GraderRunParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static GraderRunParams.Builder builder()
Returns a mutable builder for constructing an instance of GraderRunParams.
The following fields are required:
.grader() .modelSample()
-
-
-
-