struct

AI::Google::LanguageModelProviderOptions

Inherits JSON::Serializable < Struct < Value < Object

Google-specific provider options for language model generation.

These options are passed via provider_options["google"] in CallOptions.

Constructors

new(response_modalities : Array(String) | Nil = nil, thinking_config : ThinkingConfig | Nil = nil, cached_content : String | Nil = nil, structured_outputs : Bool | Nil = nil, safety_settings : Array(SafetySetting) | Nil = nil, threshold : String | Nil = nil, audio_timestamp : Bool | Nil = nil, labels : Hash(String, String) | Nil = nil, media_resolution : String | Nil = nil, image_config : ResponseImageConfig | Nil = nil, retrieval_config : RetrievalConfig | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

audio_timestamp

Enables timestamp understanding for audio-only files.

Source
cached_content

Cached content reference. Format: cachedContents/{cachedContent}

Source
image_config

Image configuration for Gemini image generation.

Source
labels

Labels for billing reports (Vertex AI only).

Source
media_resolution

Media resolution setting.

Source
response_modalities

Response modalities (e.g., ["TEXT", "IMAGE"]).

Source
retrieval_config

Retrieval config for location-based grounding.

Source
safety_settings

Safety settings for blocking unsafe content.

Source
structured_outputs

Enable structured output (default true). Set to false to disable JSON schema validation in response.

Source
thinking_config

Thinking configuration for models that support it.

Source
threshold

Standalone threshold for harm blocking (applies to all categories). Use safetySettings for per-category control.

Source