Class ChatCompletionChunk.Moderation.Input.ModerationResults
-
- All Implemented Interfaces:
public final class ChatCompletionChunk.Moderation.Input.ModerationResultsSuccessful moderation results for the request input or generated output.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionChunk.Moderation.Input.ModerationResults.BuilderA builder for ModerationResults.
public final classChatCompletionChunk.Moderation.Input.ModerationResults.ResultA moderation result produced for the response input or output.
-
Method Summary
-
-
Method Detail
-
results
final List<ChatCompletionChunk.Moderation.Input.ModerationResults.Result> results()
A list of moderation results.
-
_type
final JsonValue _type()
The object type, which is always
moderation_results.Expected to always return the following:
JsonValue.from("moderation_results")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_results
final JsonField<List<ChatCompletionChunk.Moderation.Input.ModerationResults.Result>> _results()
Returns the raw JSON value of results.
Unlike results, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionChunk.Moderation.Input.ModerationResults.Builder toBuilder()
-
validate
final ChatCompletionChunk.Moderation.Input.ModerationResults 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 ChatCompletionChunk.Moderation.Input.ModerationResults.Builder builder()
Returns a mutable builder for constructing an instance of ModerationResults.
The following fields are required:
.model() .results()
-
-
-
-