Class OutputItemListResponse.Result
-
- All Implemented Interfaces:
public final class OutputItemListResponse.ResultA single grader result for an evaluation run output item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOutputItemListResponse.Result.BuilderA builder for Result.
public final classOutputItemListResponse.Result.SampleOptional sample or intermediate data produced by the grader.
-
Method Summary
Modifier and Type Method Description final Stringname()The name of the grader. final Booleanpassed()Whether the grader considered the output a pass. final Doublescore()The numeric score produced by the grader. final Optional<OutputItemListResponse.Result.Sample>sample()Optional sample or intermediate data produced by the grader. final Optional<String>type()The grader type (for example, "string-check-grader"). final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<Boolean>_passed()Returns the raw JSON value of passed. final JsonField<Double>_score()Returns the raw JSON value of score. final JsonField<OutputItemListResponse.Result.Sample>_sample()Returns the raw JSON value of sample. final JsonField<String>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final OutputItemListResponse.Result.BuildertoBuilder()final OutputItemListResponse.Resultvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OutputItemListResponse.Result.Builderbuilder()Returns a mutable builder for constructing an instance of Result. -
-
Method Detail
-
sample
final Optional<OutputItemListResponse.Result.Sample> sample()
Optional sample or intermediate data produced by the grader.
-
_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.
-
_passed
final JsonField<Boolean> _passed()
Returns the raw JSON value of passed.
Unlike passed, this method doesn't throw if the JSON field has an unexpected type.
-
_score
final JsonField<Double> _score()
Returns the raw JSON value of score.
Unlike score, this method doesn't throw if the JSON field has an unexpected type.
-
_sample
final JsonField<OutputItemListResponse.Result.Sample> _sample()
Returns the raw JSON value of sample.
Unlike sample, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<String> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OutputItemListResponse.Result.Builder toBuilder()
-
validate
final OutputItemListResponse.Result validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static OutputItemListResponse.Result.Builder builder()
Returns a mutable builder for constructing an instance of Result.
The following fields are required:
.name() .passed() .score()
-
-
-
-