Class PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult
-
- All Implemented Interfaces:
public final class PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.BuilderA builder for PromptInjectionClassifierResult.
-
Method Summary
Modifier and Type Method Description final Optional<String>allowOverride()The allow override applied to the prompt final Optional<String>blockOverride()The block override applied to the prompt final Optional<Double>elapsedMs()The time in milliseconds it took to process the prompt injection classifier final Optional<List<Double>>probabilities()final Optional<Boolean>verdict()The verdict of the prompt injection classifier final Optional<Double>version()The version of the prompt injection classifier final JsonField<String>_allowOverride()Returns the raw JSON value of allowOverride. final JsonField<String>_blockOverride()Returns the raw JSON value of blockOverride. 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.PromptInjectionClassifierResult.BuildertoBuilder()final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResultvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builderbuilder()Returns a mutable builder for constructing an instance of PromptInjectionClassifierResult. -
-
Method Detail
-
allowOverride
final Optional<String> allowOverride()
The allow override applied to the prompt
-
blockOverride
final Optional<String> blockOverride()
The block override applied to the prompt
-
elapsedMs
final Optional<Double> elapsedMs()
The time in milliseconds it took to process the prompt injection classifier
-
probabilities
final Optional<List<Double>> probabilities()
-
_allowOverride
final JsonField<String> _allowOverride()
Returns the raw JSON value of allowOverride.
Unlike allowOverride, this method doesn't throw if the JSON field has an unexpected type.
-
_blockOverride
final JsonField<String> _blockOverride()
Returns the raw JSON value of blockOverride.
Unlike blockOverride, this method doesn't throw if the JSON field has an unexpected type.
-
_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.PromptInjectionClassifierResult.Builder toBuilder()
-
builder
final static PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder builder()
Returns a mutable builder for constructing an instance of PromptInjectionClassifierResult.
-
-
-
-