Class PromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResults
-
- All Implemented Interfaces:
public final class PromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResultsThe refusal classifier results
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResults.BuilderA builder for RefusalClassifierResults.
-
Method Summary
Modifier and Type Method Description final Optional<Double>elapsedMs()The time in milliseconds it took to process the refusal classifier final Optional<List<Double>>probabilities()final Optional<Boolean>verdict()The verdict of the refusal classifier final Optional<Double>version()The version of the refusal classifier final JsonField<Double>_elapsedMs()Returns the raw JSON value of elapsedMs. final JsonField<List<Double>>_probabilities()Returns the raw JSON value of probabilities. final JsonField<Boolean>_verdict()Returns the raw JSON value of verdict. final JsonField<Double>_version()Returns the raw JSON value of version. final Map<String, JsonValue>_additionalProperties()final PromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResults.BuildertoBuilder()final PromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResultsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResults.Builderbuilder()Returns a mutable builder for constructing an instance of RefusalClassifierResults. -
-
Method Detail
-
elapsedMs
final Optional<Double> elapsedMs()
The time in milliseconds it took to process the refusal classifier
-
probabilities
final Optional<List<Double>> probabilities()
-
_elapsedMs
final JsonField<Double> _elapsedMs()
Returns the raw JSON value of elapsedMs.
Unlike elapsedMs, this method doesn't throw if the JSON field has an unexpected type.
-
_probabilities
final JsonField<List<Double>> _probabilities()
Returns the raw JSON value of probabilities.
Unlike probabilities, this method doesn't throw if the JSON field has an unexpected type.
-
_verdict
final JsonField<Boolean> _verdict()
Returns the raw JSON value of verdict.
Unlike verdict, this method doesn't throw if the JSON field has an unexpected type.
-
_version
final JsonField<Double> _version()
Returns the raw JSON value of version.
Unlike version, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResults.Builder toBuilder()
-
validate
final PromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResults 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 PromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResults.Builder builder()
Returns a mutable builder for constructing an instance of RefusalClassifierResults.
-
-
-
-