Skip to main content

Module options

Module options 

Source
Expand description

Provider options read from provider_options["google"] (and the configured provider name when it differs).

Structs§

GoogleLanguageModelOptions
Language model options (provider_options["google"]).
ImageConfig
Image generation configuration (imageConfig).
PartOptions
Part-level options and metadata (thoughtSignature, thought, serverToolCallId, serverToolType).
SafetySetting
A safety setting ({category, threshold}).
ThinkingConfig
Thinking configuration (thinkingConfig).

Functions§

parse_merged
Parses T under the canonical google key and, when the configured name differs, under that name as well; merge combines the two (the custom key wins).
parse_options
Parses the language model options (canonical key, then configured name).
part_options
Reads the raw option object of a part or message: the configured name first, then the canonical key.
read_options
Deserializes object into T, ignoring unknown keys.
read_part_options
Reads the part options of a prompt part.