# `Gemini.Types.Live.ProactivityConfig`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/live/proactivity_config.ex#L1)

Proactivity configuration for Live API sessions.

Configures the proactivity features of the model. When enabled, the model
can respond proactively to input and ignore irrelevant input.

## Fields

- `proactive_audio` - If enabled, the model can reject responding to prompts.
  For example, this allows the model to ignore out of context speech or
  stay silent if the user did not make a request.

## Example

    %ProactivityConfig{proactive_audio: true}

# `t`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/live/proactivity_config.ex#L19)

```elixir
@type t() :: %Gemini.Types.Live.ProactivityConfig{proactive_audio: boolean() | nil}
```

# `from_api`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/live/proactivity_config.ex#L58)

```elixir
@spec from_api(map() | nil) :: t() | nil
```

Parses from API response.

# `new`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/live/proactivity_config.ex#L29)

```elixir
@spec new(keyword()) :: t()
```

Creates a new ProactivityConfig.

# `to_api`
[🔗](https://github.com/nshkrdotcom/gemini_ex/blob/v0.13.0/lib/gemini/types/live/proactivity_config.ex#L39)

```elixir
@spec to_api(t() | map() | nil) :: map() | nil
```

Converts to API format (camelCase).

---

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