Package com.openai.models.responses
Class ResponseCreateParams.Moderation
-
- All Implemented Interfaces:
public final class ResponseCreateParams.ModerationConfiguration for running moderation on the input and output of this response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseCreateParams.Moderation.BuilderA builder for Moderation.
-
Method Summary
Modifier and Type Method Description final Stringmodel()The moderation model to use for moderated completions, e.g. final JsonField<String>_model()Returns the raw JSON value of model. final Map<String, JsonValue>_additionalProperties()final ResponseCreateParams.Moderation.BuildertoBuilder()final ResponseCreateParams.Moderationvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseCreateParams.Moderation.Builderbuilder()Returns a mutable builder for constructing an instance of Moderation. -
-
Method Detail
-
model
final String model()
The moderation model to use for moderated completions, e.g. 'omni-moderation-latest'.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseCreateParams.Moderation.Builder toBuilder()
-
validate
final ResponseCreateParams.Moderation 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 ResponseCreateParams.Moderation.Builder builder()
Returns a mutable builder for constructing an instance of Moderation.
The following fields are required:
.model()
-
-
-
-