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.
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
[JsonConverter(typeof(HarmCategoryConverter))]
public enum HarmCategory
Fields
| Name | Description |
|---|---|
| Dangerous | Dangerous content that promotes, facilitates, or encourages harmful acts. |
| Derogatory | Negative or harmful comments targeting identity and/or protected attribute. |
| Financial | Content related to financial information or transactions. |
| Harassment | Harassment content. |
| HarassmentThreatening | Harassment content that also includes violence or serious harm towards any target. |
| Hate | Hate speech and content. Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. |
| HateThreatening | Hateful 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. |
| Law | Content related to legal matters or issues. |
| Medical | Promotes unchecked medical advice. |
| None | Default value (it's null). |
| PersonalInformation | Content that reveals personally identifiable information (PII) such as real names, addresses, phone numbers, or other data that can identify an individual. |
| SelfHarm | Content that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders. |
| SelfHarmInstructions | Content 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 | Content 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 | Contains references to sexual acts or other lewd content. |
| SexualMinors | Sexual content that includes an individual who is under 18 years old. |
| Toxicity | Content that is rude, disrespectful, or profane. |
| Unspecified | Content that is not classified into any specific category. |
| Violence | Describes scenarios depicting violence against an individual or group, or general descriptions of gore. |
| ViolenceGraphic | Content that depicts death, violence, or physical injury in graphic detail. |