HarmCategory Enumeration

The category of a rating. These categories cover various kinds of harms that developers may wish to adjust.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public enum HarmCategory

Members

HARM_CATEGORY_UNSPECIFIED0 Category is unspecified.
HARM_CATEGORY_DEROGATORY1PaLM - Negative or harmful comments targeting identity and/or protected attribute.
HARM_CATEGORY_TOXICITY2PaLM - Content that is rude, disrespectful, or profane.
HARM_CATEGORY_VIOLENCE3PaLM - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.
HARM_CATEGORY_SEXUAL4PaLM - Contains references to sexual acts or other lewd content.
HARM_CATEGORY_MEDICAL5PaLM - Promotes unchecked medical advice.
HARM_CATEGORY_DANGEROUS6PaLM - Dangerous content that promotes, facilitates, or encourages harmful acts.
HARM_CATEGORY_HARASSMENT7Gemini - Harassment content.
HARM_CATEGORY_HATE_SPEECH8Gemini - Hate speech and content.
HARM_CATEGORY_SEXUALLY_EXPLICIT9Gemini - Sexually explicit content.
HARM_CATEGORY_DANGEROUS_CONTENT10Gemini - Dangerous content.
HARM_CATEGORY_CIVIC_INTEGRITY11Gemini - Content that may be used to harm civic integrity.

See Also