Package com.openai.models.beta.responses
Class BetaResponsesClientEvent.ResponseCreate.Moderation.Policy
-
- All Implemented Interfaces:
public final class BetaResponsesClientEvent.ResponseCreate.Moderation.PolicyThe policy to apply to moderated response input and output.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponsesClientEvent.ResponseCreate.Moderation.Policy.BuilderA builder for Policy.
public final classBetaResponsesClientEvent.ResponseCreate.Moderation.Policy.InputThe moderation policy for the response input.
public final classBetaResponsesClientEvent.ResponseCreate.Moderation.Policy.OutputThe moderation policy for the response output.
-
Method Summary
-
-
Method Detail
-
input
final Optional<BetaResponsesClientEvent.ResponseCreate.Moderation.Policy.Input> input()
The moderation policy for the response input.
-
output
final Optional<BetaResponsesClientEvent.ResponseCreate.Moderation.Policy.Output> output()
The moderation policy for the response output.
-
_input
final JsonField<BetaResponsesClientEvent.ResponseCreate.Moderation.Policy.Input> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_output
final JsonField<BetaResponsesClientEvent.ResponseCreate.Moderation.Policy.Output> _output()
Returns the raw JSON value of output.
Unlike output, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponsesClientEvent.ResponseCreate.Moderation.Policy.Builder toBuilder()
-
validate
final BetaResponsesClientEvent.ResponseCreate.Moderation.Policy 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 BetaResponsesClientEvent.ResponseCreate.Moderation.Policy.Builder builder()
Returns a mutable builder for constructing an instance of Policy.
-
-
-
-