yera.setup.provider_setup.gemini
Obtain and validate Gemini provider configuration.
Symbols
GeminiProviderSetup
ProviderSetup[GeminiConnection]Provide presentation-independent Gemini setup operations.
Configuration discovery follows the Gemini SDK's API-key environment variable precedence. Validation requires the configured variable to contain a non-empty value.
Attributes
Configuration key for the Gemini provider.
Python import paths required by the integration.
Methods
GeminiProviderSetup.get_config
get_config() → SetupResult[tuple[GeminiConnection, ...]]Obtain Gemini configuration from the current environment.
Returns
A result containing a connection referencing the first populated Gemini API-key variable in SDK precedence order. Otherwise, the result contains no configuration.
GeminiProviderSetup.validate
validate(
config: GeminiConnection,
) → SetupResult[GeminiConnection]Validate a Gemini connection's API-key environment variable.
Parameters
Gemini connection containing the environment-variable name.
Returns
The supplied configuration and any blocking validation errors.