Class PromptAnalyzerCreateResponse.Results.GuardrailResults
-
- All Implemented Interfaces:
public final class PromptAnalyzerCreateResponse.Results.GuardrailResultsThe guardrail results
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptAnalyzerCreateResponse.Results.GuardrailResults.BuilderA builder for GuardrailResults.
public final classPromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResultsThe refusal classifier results
-
Method Summary
-
-
Method Detail
-
elapsedMs
final Optional<Double> elapsedMs()
The time in milliseconds it took to process the guardrail
-
refusalClassifierResults
final Optional<PromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResults> refusalClassifierResults()
The refusal classifier results
-
_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.
-
_refusalClassifierResults
final JsonField<PromptAnalyzerCreateResponse.Results.GuardrailResults.RefusalClassifierResults> _refusalClassifierResults()
Returns the raw JSON value of refusalClassifierResults.
Unlike refusalClassifierResults, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PromptAnalyzerCreateResponse.Results.GuardrailResults.Builder toBuilder()
-
validate
final PromptAnalyzerCreateResponse.Results.GuardrailResults 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.Builder builder()
Returns a mutable builder for constructing an instance of GuardrailResults.
-
-
-
-