Class ChatCompletion.Moderation.Input.ModerationResults.Result.Builder
-
- All Implemented Interfaces:
public final class ChatCompletion.Moderation.Input.ModerationResults.Result.BuilderA builder for Result.
-
-
Method Summary
-
-
Method Detail
-
categories
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder categories(ChatCompletion.Moderation.Input.ModerationResults.Result.Categories categories)
A dictionary of moderation categories to booleans, True if the input is flagged under this category.
-
categories
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder categories(JsonField<ChatCompletion.Moderation.Input.ModerationResults.Result.Categories> categories)
Sets Builder.categories to an arbitrary JSON value.
You should usually call Builder.categories with a well-typed Categories value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
categoryAppliedInputTypes
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder categoryAppliedInputTypes(ChatCompletion.Moderation.Input.ModerationResults.Result.CategoryAppliedInputTypes categoryAppliedInputTypes)
Which modalities of input are reflected by the score for each category.
-
categoryAppliedInputTypes
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder categoryAppliedInputTypes(JsonField<ChatCompletion.Moderation.Input.ModerationResults.Result.CategoryAppliedInputTypes> categoryAppliedInputTypes)
Sets Builder.categoryAppliedInputTypes to an arbitrary JSON value.
You should usually call Builder.categoryAppliedInputTypes with a well-typed CategoryAppliedInputTypes value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
categoryScores
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder categoryScores(ChatCompletion.Moderation.Input.ModerationResults.Result.CategoryScores categoryScores)
A dictionary of moderation categories to scores.
-
categoryScores
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder categoryScores(JsonField<ChatCompletion.Moderation.Input.ModerationResults.Result.CategoryScores> categoryScores)
Sets Builder.categoryScores to an arbitrary JSON value.
You should usually call Builder.categoryScores with a well-typed CategoryScores value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
flagged
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder flagged(Boolean flagged)
A boolean indicating whether the content was flagged by any category.
-
flagged
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder flagged(JsonField<Boolean> flagged)
Sets Builder.flagged to an arbitrary JSON value.
You should usually call Builder.flagged with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder model(String model)
The moderation model that produced this result.
-
model
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("moderation_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletion.Moderation.Input.ModerationResults.Result.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletion.Moderation.Input.ModerationResults.Result build()
Returns an immutable instance of Result.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.categories() .categoryAppliedInputTypes() .categoryScores() .flagged() .model()
-
-
-
-