Class PromptAnalyzerCreateResponse
-
- All Implemented Interfaces:
public final class PromptAnalyzerCreateResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptAnalyzerCreateResponse.BuilderA builder for PromptAnalyzerCreateResponse.
public final classPromptAnalyzerCreateResponse.CategoriesThe analysis detection categories
public final classPromptAnalyzerCreateResponse.FrameworksThe framework labels identified during analysis
public final classPromptAnalyzerCreateResponse.PolicyThe policy used during analysis
public final classPromptAnalyzerCreateResponse.Responsepublic final classPromptAnalyzerCreateResponse.ResultsThe analysis results
-
Method Summary
-
-
Method Detail
-
categories
final Optional<PromptAnalyzerCreateResponse.Categories> categories()
The analysis detection categories
-
elapsedMs
final Optional<Double> elapsedMs()
The time in milliseconds it took to process the request
-
frameworks
final Optional<PromptAnalyzerCreateResponse.Frameworks> frameworks()
The framework labels identified during analysis
-
policy
final Optional<PromptAnalyzerCreateResponse.Policy> policy()
The policy used during analysis
-
response
final Optional<PromptAnalyzerCreateResponse.Response> response()
-
results
final Optional<PromptAnalyzerCreateResponse.Results> results()
The analysis results
-
upstreamElapsedMs
final Optional<Double> upstreamElapsedMs()
The time in milliseconds the upstream LLM took to process the request
-
_categories
final JsonField<PromptAnalyzerCreateResponse.Categories> _categories()
Returns the raw JSON value of categories.
Unlike categories, 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.
-
_frameworks
final JsonField<PromptAnalyzerCreateResponse.Frameworks> _frameworks()
Returns the raw JSON value of frameworks.
Unlike frameworks, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_policy
final JsonField<PromptAnalyzerCreateResponse.Policy> _policy()
Returns the raw JSON value of policy.
Unlike policy, this method doesn't throw if the JSON field has an unexpected type.
-
_provider
final JsonField<String> _provider()
Returns the raw JSON value of provider.
Unlike provider, this method doesn't throw if the JSON field has an unexpected type.
-
_response
final JsonField<PromptAnalyzerCreateResponse.Response> _response()
Returns the raw JSON value of response.
Unlike response, this method doesn't throw if the JSON field has an unexpected type.
-
_results
final JsonField<PromptAnalyzerCreateResponse.Results> _results()
Returns the raw JSON value of results.
Unlike results, this method doesn't throw if the JSON field has an unexpected type.
-
_upstreamElapsedMs
final JsonField<Double> _upstreamElapsedMs()
Returns the raw JSON value of upstreamElapsedMs.
Unlike upstreamElapsedMs, 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.Builder toBuilder()
-
validate
final PromptAnalyzerCreateResponse validate()
-
builder
final static PromptAnalyzerCreateResponse.Builder builder()
Returns a mutable builder for constructing an instance of PromptAnalyzerCreateResponse.
-
-
-
-