# `Gemini.Types.SafetySetting`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.17.0/lib/gemini/types/common/safety_setting.ex#L1)

Safety settings for content generation.

# `category`

```elixir
@type category() ::
  :harm_category_harassment
  | :harm_category_hate_speech
  | :harm_category_sexually_explicit
  | :harm_category_dangerous_content
```

# `t`

```elixir
@type t() :: %Gemini.Types.SafetySetting{category: category(), threshold: threshold()}
```

# `threshold`

```elixir
@type threshold() ::
  :harm_block_threshold_unspecified
  | :block_low_and_above
  | :block_medium_and_above
  | :block_only_high
  | :block_none
```

# `dangerous_content`

Create a safety setting for dangerous content.

# `defaults`

Get default safety settings (medium threshold for all categories).

# `harassment`

Create a safety setting for harassment content.

# `hate_speech`

Create a safety setting for hate speech content.

# `permissive`

Get permissive safety settings (block only high risk content).

# `sexually_explicit`

Create a safety setting for sexually explicit content.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
