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(pull : JSON::PullParser)
Sourcenew(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)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
structured_outputs
Enable structured output (default true). Set to false to disable JSON schema validation in response.
threshold
Standalone threshold for harm blocking (applies to all categories). Use safetySettings for per-category control.