Class ChatCompletion.Moderation
-
- All Implemented Interfaces:
public final class ChatCompletion.ModerationModeration results for the request input and generated output, if moderated completions were requested.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletion.Moderation.BuilderA builder for Moderation.
public final classChatCompletion.Moderation.InputModeration for the request input.
public final classChatCompletion.Moderation.OutputModeration for the generated output.
-
Method Summary
Modifier and Type Method Description final ChatCompletion.Moderation.Inputinput()Moderation for the request input. final ChatCompletion.Moderation.Outputoutput()Moderation for the generated output. final JsonField<ChatCompletion.Moderation.Input>_input()Returns the raw JSON value of input. final JsonField<ChatCompletion.Moderation.Output>_output()Returns the raw JSON value of output. final Map<String, JsonValue>_additionalProperties()final ChatCompletion.Moderation.BuildertoBuilder()final ChatCompletion.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 ChatCompletion.Moderation.Builderbuilder()Returns a mutable builder for constructing an instance of Moderation. -
-
Method Detail
-
input
final ChatCompletion.Moderation.Input input()
Moderation for the request input.
-
output
final ChatCompletion.Moderation.Output output()
Moderation for the generated output.
-
_input
final JsonField<ChatCompletion.Moderation.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<ChatCompletion.Moderation.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 ChatCompletion.Moderation.Builder toBuilder()
-
validate
final ChatCompletion.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 ChatCompletion.Moderation.Builder builder()
Returns a mutable builder for constructing an instance of Moderation.
The following fields are required:
.input() .output()
-
-
-
-