Class PromptAnalyzerCreateResponse.Categories
-
- All Implemented Interfaces:
public final class PromptAnalyzerCreateResponse.CategoriesThe analysis detection categories
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptAnalyzerCreateResponse.Categories.BuilderA builder for Categories.
-
Method Summary
Modifier and Type Method Description final Optional<Boolean>guardrail()The input activated the upstream guardrails final Optional<Boolean>inputCode()The input contains code final Optional<Boolean>inputDos()The input contains a denial of service attack final Optional<Boolean>inputLanguage()The input contains a disallowed language final Optional<Boolean>inputPii()The input contains personally identifiable information final Optional<Boolean>outputCode()The output contains code final Optional<Boolean>outputPii()The output contains personally identifiable information final Optional<Boolean>promptInjection()The input contains prompt injection final Optional<Boolean>unsafeInput()The input is unsafe final Optional<Boolean>unsafeOutput()The output is unsafe final JsonField<Boolean>_guardrail()Returns the raw JSON value of guardrail. final JsonField<Boolean>_inputCode()Returns the raw JSON value of inputCode. final JsonField<Boolean>_inputDos()Returns the raw JSON value of inputDos. final JsonField<Boolean>_inputLanguage()Returns the raw JSON value of inputLanguage. final JsonField<Boolean>_inputPii()Returns the raw JSON value of inputPii. final JsonField<Boolean>_outputCode()Returns the raw JSON value of outputCode. final JsonField<Boolean>_outputPii()Returns the raw JSON value of outputPii. final JsonField<Boolean>_promptInjection()Returns the raw JSON value of promptInjection. final JsonField<Boolean>_unsafeInput()Returns the raw JSON value of unsafeInput. final JsonField<Boolean>_unsafeOutput()Returns the raw JSON value of unsafeOutput. final Map<String, JsonValue>_additionalProperties()final PromptAnalyzerCreateResponse.Categories.BuildertoBuilder()final PromptAnalyzerCreateResponse.Categoriesvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PromptAnalyzerCreateResponse.Categories.Builderbuilder()Returns a mutable builder for constructing an instance of Categories. -
-
Method Detail
-
inputLanguage
final Optional<Boolean> inputLanguage()
The input contains a disallowed language
-
outputCode
final Optional<Boolean> outputCode()
The output contains code
-
outputPii
final Optional<Boolean> outputPii()
The output contains personally identifiable information
-
promptInjection
final Optional<Boolean> promptInjection()
The input contains prompt injection
-
unsafeInput
final Optional<Boolean> unsafeInput()
The input is unsafe
-
unsafeOutput
final Optional<Boolean> unsafeOutput()
The output is unsafe
-
_guardrail
final JsonField<Boolean> _guardrail()
Returns the raw JSON value of guardrail.
Unlike guardrail, this method doesn't throw if the JSON field has an unexpected type.
-
_inputCode
final JsonField<Boolean> _inputCode()
Returns the raw JSON value of inputCode.
Unlike inputCode, this method doesn't throw if the JSON field has an unexpected type.
-
_inputDos
final JsonField<Boolean> _inputDos()
Returns the raw JSON value of inputDos.
Unlike inputDos, this method doesn't throw if the JSON field has an unexpected type.
-
_inputLanguage
final JsonField<Boolean> _inputLanguage()
Returns the raw JSON value of inputLanguage.
Unlike inputLanguage, this method doesn't throw if the JSON field has an unexpected type.
-
_inputPii
final JsonField<Boolean> _inputPii()
Returns the raw JSON value of inputPii.
Unlike inputPii, this method doesn't throw if the JSON field has an unexpected type.
-
_outputCode
final JsonField<Boolean> _outputCode()
Returns the raw JSON value of outputCode.
Unlike outputCode, this method doesn't throw if the JSON field has an unexpected type.
-
_outputPii
final JsonField<Boolean> _outputPii()
Returns the raw JSON value of outputPii.
Unlike outputPii, this method doesn't throw if the JSON field has an unexpected type.
-
_promptInjection
final JsonField<Boolean> _promptInjection()
Returns the raw JSON value of promptInjection.
Unlike promptInjection, this method doesn't throw if the JSON field has an unexpected type.
-
_unsafeInput
final JsonField<Boolean> _unsafeInput()
Returns the raw JSON value of unsafeInput.
Unlike unsafeInput, this method doesn't throw if the JSON field has an unexpected type.
-
_unsafeOutput
final JsonField<Boolean> _unsafeOutput()
Returns the raw JSON value of unsafeOutput.
Unlike unsafeOutput, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PromptAnalyzerCreateResponse.Categories.Builder toBuilder()
-
validate
final PromptAnalyzerCreateResponse.Categories validate()
-
builder
final static PromptAnalyzerCreateResponse.Categories.Builder builder()
Returns a mutable builder for constructing an instance of Categories.
-
-
-
-