Class PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder
-
- All Implemented Interfaces:
public final class PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.BuilderA builder for PromptInjectionClassifierResult.
-
-
Method Summary
-
-
Method Detail
-
allowOverride
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder allowOverride(String allowOverride)
The allow override applied to the prompt
-
allowOverride
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder allowOverride(JsonField<String> allowOverride)
Sets Builder.allowOverride to an arbitrary JSON value.
You should usually call Builder.allowOverride with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockOverride
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder blockOverride(String blockOverride)
The block override applied to the prompt
-
blockOverride
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder blockOverride(JsonField<String> blockOverride)
Sets Builder.blockOverride to an arbitrary JSON value.
You should usually call Builder.blockOverride with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
elapsedMs
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder elapsedMs(Double elapsedMs)
The time in milliseconds it took to process the prompt injection classifier
-
elapsedMs
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder elapsedMs(JsonField<Double> elapsedMs)
Sets Builder.elapsedMs to an arbitrary JSON value.
You should usually call Builder.elapsedMs with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
probabilities
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder probabilities(List<Double> probabilities)
-
probabilities
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder probabilities(JsonField<List<Double>> probabilities)
Sets Builder.probabilities to an arbitrary JSON value.
You should usually call Builder.probabilities with a well-typed
List<Double>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addProbability
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder addProbability(Double probability)
Adds a single Double to probabilities.
-
verdict
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder verdict(Boolean verdict)
The verdict of the prompt injection classifier
-
verdict
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder verdict(JsonField<Boolean> verdict)
Sets Builder.verdict to an arbitrary JSON value.
You should usually call Builder.verdict with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
version
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder version(Double version)
The version of the prompt injection classifier
-
version
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder version(JsonField<Double> version)
Sets Builder.version to an arbitrary JSON value.
You should usually call Builder.version with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PromptAnalyzerCreateResponse.Results.PromptInjectionClassifierResult build()
Returns an immutable instance of PromptInjectionClassifierResult.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-