Gemini.Types.Live.ProactivityConfig (GeminiEx v0.9.0)

Copy Markdown View Source

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}

Summary

Functions

Parses from API response.

Creates a new ProactivityConfig.

Converts to API format (camelCase).

Types

t()

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

Functions

from_api(data)

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

Parses from API response.

new(opts \\ [])

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

Creates a new ProactivityConfig.

to_api(value)

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

Converts to API format (camelCase).