Gemini.Types.Enums.HarmCategory (GeminiEx v0.10.0)

Copy Markdown View Source

Categories of harmful content that can be filtered.

Values

  • :unspecified - Default/unknown category
  • :harassment - Harassment and bullying content
  • :hate_speech - Hate speech targeting identity groups
  • :sexually_explicit - Sexually explicit content
  • :dangerous_content - Content promoting dangerous activities
  • :civic_integrity - Content affecting civic integrity (elections, etc.)
  • :derogatory - Derogatory content (deprecated)
  • :toxicity - Toxic content (deprecated)
  • :violence - Violent content (deprecated)
  • :sexual - Sexual content (deprecated)
  • :medical - Medical misinformation (deprecated)
  • :dangerous - Dangerous content (deprecated)

Summary

Types

t()

@type t() ::
  :unspecified
  | :harassment
  | :hate_speech
  | :sexually_explicit
  | :dangerous_content
  | :civic_integrity
  | :derogatory
  | :toxicity
  | :violence
  | :sexual
  | :medical
  | :dangerous

Functions

all()

@spec all() :: [t()]

from_api(arg1)

@spec from_api(String.t() | nil) :: t() | nil

to_api(atom)

@spec to_api(t()) :: String.t()