Class EvalUpdateResponse.TestingCriterion.EvalGraderPython
-
- All Implemented Interfaces:
public final class EvalUpdateResponse.TestingCriterion.EvalGraderPythonA PythonGrader object that runs a python script on the input.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEvalUpdateResponse.TestingCriterion.EvalGraderPython.BuilderA builder for EvalGraderPython.
-
Method Summary
Modifier and Type Method Description final PythonGradertoPythonGrader()final Stringname()The name of the grader. final Stringsource()The source code of the python script. final JsonValue_type()The object type, which is always python.final Optional<String>imageTag()The image tag to use for the python script. final Optional<Double>passThreshold()The threshold for the score. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_source()Returns the raw JSON value of source. final JsonField<String>_imageTag()Returns the raw JSON value of imageTag. final JsonField<Double>_passThreshold()Returns the raw JSON value of passThreshold. final Map<String, JsonValue>_additionalProperties()final EvalUpdateResponse.TestingCriterion.EvalGraderPython.BuildertoBuilder()final EvalUpdateResponse.TestingCriterion.EvalGraderPythonvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builderbuilder()Returns a mutable builder for constructing an instance of EvalGraderPython. -
-
Method Detail
-
toPythonGrader
final PythonGrader toPythonGrader()
-
_type
final JsonValue _type()
The object type, which is always
python.Expected to always return the following:
JsonValue.from("python")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
passThreshold
final Optional<Double> passThreshold()
The threshold for the score.
-
_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.
-
_source
final JsonField<String> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_imageTag
final JsonField<String> _imageTag()
Returns the raw JSON value of imageTag.
Unlike imageTag, this method doesn't throw if the JSON field has an unexpected type.
-
_passThreshold
final JsonField<Double> _passThreshold()
Returns the raw JSON value of passThreshold.
Unlike passThreshold, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder toBuilder()
-
validate
final EvalUpdateResponse.TestingCriterion.EvalGraderPython 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 EvalUpdateResponse.TestingCriterion.EvalGraderPython.Builder builder()
Returns a mutable builder for constructing an instance of EvalGraderPython.
The following fields are required:
.name() .source()
-
-
-
-