Package com.openai.models
Class Moderation
-
- All Implemented Interfaces:
public final class Moderation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Moderation.Builder
A builder for Moderation.
public final class
Moderation.Categories
A list of the categories, and whether they are flagged or not.
public final class
Moderation.CategoryAppliedInputTypes
A list of the categories along with the input type(s) that the score applies to.
public final class
Moderation.CategoryScores
A list of the categories along with their scores as predicted by model.
-
Method Summary
Modifier and Type Method Description final Moderation.Categories
categories()
A list of the categories, and whether they are flagged or not. final Moderation.CategoryAppliedInputTypes
categoryAppliedInputTypes()
A list of the categories along with the input type(s) that the score applies to. final Moderation.CategoryScores
categoryScores()
A list of the categories along with their scores as predicted by model. final Boolean
flagged()
Whether any of the below categories are flagged. final JsonField<Moderation.Categories>
_categories()
A list of the categories, and whether they are flagged or not. final JsonField<Moderation.CategoryAppliedInputTypes>
_categoryAppliedInputTypes()
A list of the categories along with the input type(s) that the score applies to. final JsonField<Moderation.CategoryScores>
_categoryScores()
A list of the categories along with their scores as predicted by model. final JsonField<Boolean>
_flagged()
Whether any of the below categories are flagged. final Map<String, JsonValue>
_additionalProperties()
final Moderation
validate()
final Moderation.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Moderation.Builder
builder()
-
-
Method Detail
-
categories
final Moderation.Categories categories()
A list of the categories, and whether they are flagged or not.
-
categoryAppliedInputTypes
final Moderation.CategoryAppliedInputTypes categoryAppliedInputTypes()
A list of the categories along with the input type(s) that the score applies to.
-
categoryScores
final Moderation.CategoryScores categoryScores()
A list of the categories along with their scores as predicted by model.
-
_categories
final JsonField<Moderation.Categories> _categories()
A list of the categories, and whether they are flagged or not.
-
_categoryAppliedInputTypes
final JsonField<Moderation.CategoryAppliedInputTypes> _categoryAppliedInputTypes()
A list of the categories along with the input type(s) that the score applies to.
-
_categoryScores
final JsonField<Moderation.CategoryScores> _categoryScores()
A list of the categories along with their scores as predicted by model.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final Moderation validate()
-
toBuilder
final Moderation.Builder toBuilder()
-
builder
final static Moderation.Builder builder()
-
-
-
-