Class ChatCompletion.Moderation.Input.ModerationResults
-
- All Implemented Interfaces:
public final class ChatCompletion.Moderation.Input.ModerationResultsSuccessful moderation results for the request input or generated output.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletion.Moderation.Input.ModerationResults.BuilderA builder for ModerationResults.
public final classChatCompletion.Moderation.Input.ModerationResults.ResultA moderation result produced for the response input or output.
-
Method Summary
Modifier and Type Method Description final Stringmodel()The moderation model used to generate the results. final List<ChatCompletion.Moderation.Input.ModerationResults.Result>results()A list of moderation results. final JsonValue_type()The object type, which is always moderation_results.final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<List<ChatCompletion.Moderation.Input.ModerationResults.Result>>_results()Returns the raw JSON value of results. final Map<String, JsonValue>_additionalProperties()final ChatCompletion.Moderation.Input.ModerationResults.BuildertoBuilder()final ChatCompletion.Moderation.Input.ModerationResultsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletion.Moderation.Input.ModerationResults.Builderbuilder()Returns a mutable builder for constructing an instance of ModerationResults. -
-
Method Detail
-
results
final List<ChatCompletion.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<ChatCompletion.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 ChatCompletion.Moderation.Input.ModerationResults.Builder toBuilder()
-
validate
final ChatCompletion.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 ChatCompletion.Moderation.Input.ModerationResults.Builder builder()
Returns a mutable builder for constructing an instance of ModerationResults.
The following fields are required:
.model() .results()
-
-
-
-