Enum HarmCategory
Represents the category of harm that a piece of content may fall into. This is used in moderation tasks to classify content based on its potential harm.
public enum HarmCategory
Fields
Dangerous = 7Dangerous content that promotes, facilitates, or encourages harmful acts.
DangerousContent = 11Dangerous content.
Derogatory = 2Negative or harmful comments targeting identity and/or protected attribute.
Harassment = 8Harassment content.
HarassmentThreatening = 19Harassment content that also includes violence or serious harm towards any target.
Hate = 9Hate speech and content. Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.
HateThreatening = 15Hateful content that also includes violence or serious harm towards the targeted group based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.
Medical = 6Promotes unchecked medical advice.
None = 0Default value (it's null).
SelfHarm = 13Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders.
SelfHarmInstructions = 18Content that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts.
SelfHarmIntent = 17Content where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders.
Sexual = 5Contains references to sexual acts or other lewd content.
SexualContent = 12Content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness).
SexualMinors = 14Sexual content that includes an individual who is under 18 years old.
SexuallyExplicit = 10Sexually explicit content.
Toxicity = 3Content that is rude, disrespectful, or profane.
Unspecified = 1Content that is not classified into any specific category.
Violence = 4Describes scenarios depicting violence against an individual or group, or general descriptions of gore.
ViolenceGraphic = 16Content that depicts death, violence, or physical injury in graphic detail.