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

Copy Markdown View Source

Threshold levels for blocking harmful content.

Values

  • :unspecified - Default/unknown threshold
  • :block_low_and_above - Block content with low+ probability of harm
  • :block_medium_and_above - Block content with medium+ probability
  • :block_only_high - Only block high probability harmful content
  • :block_none - Don't block any content (for research/testing)
  • :off - Safety filter is completely off

Summary

Types

t()

@type t() ::
  :unspecified
  | :block_low_and_above
  | :block_medium_and_above
  | :block_only_high
  | :block_none
  | :off

Functions

from_api(arg1)

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

to_api(atom)

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