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

Realtime input configuration for Live API sessions.

Configures the realtime input behavior in BidiGenerateContent, including
automatic activity detection, activity handling (barge-in behavior),
and turn coverage settings.

## Fields

- `automatic_activity_detection` - Configuration for automatic voice/text detection
- `activity_handling` - What effect activity has on model generation
- `turn_coverage` - Which input is included in the user's turn

## Example

    %RealtimeInputConfig{
      automatic_activity_detection: %AutomaticActivityDetection{disabled: false},
      activity_handling: :start_of_activity_interrupts,
      turn_coverage: :turn_includes_only_activity
    }

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

```elixir
@type t() :: %Gemini.Types.Live.RealtimeInputConfig{
  activity_handling: Gemini.Types.Live.Enums.ActivityHandling.t() | nil,
  automatic_activity_detection:
    Gemini.Types.Live.AutomaticActivityDetection.t() | nil,
  turn_coverage: Gemini.Types.Live.Enums.TurnCoverage.t() | nil
}
```

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

```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/realtime_input_config.ex#L39)

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

Creates a new RealtimeInputConfig.

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

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

Converts to API format (camelCase).

---

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