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