Enum Class ModerationResult.Category
java.lang.Object
java.lang.Enum<ModerationResult.Category>
com.tnsai.quality.security.moderation.ModerationResult.Category
- All Implemented Interfaces:
Serializable,Comparable<ModerationResult.Category>,Constable
- Enclosing class:
ModerationResult
Content categories for moderation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHarassment and bullyingHate speech and discriminationIllegal activitiesOff-topic contentPII disclosurePrompt injection attemptSelf-harm contentExplicit sexual contentSpam contentToxic languageViolence and threats -
Method Summary
Modifier and TypeMethodDescriptionstatic ModerationResult.CategoryReturns the enum constant of this class with the specified name.static ModerationResult.Category[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
HATE
Hate speech and discrimination -
HARASSMENT
Harassment and bullying -
VIOLENCE
Violence and threats -
SELF_HARM
Self-harm content -
SEXUAL
Explicit sexual content -
ILLEGAL
Illegal activities -
TOXIC
Toxic language -
SPAM
Spam content -
PROMPT_INJECTION
Prompt injection attempt -
PII
PII disclosure -
OFF_TOPIC
Off-topic content
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-