yera.setup.provider_setup.gemini
Obtain and validate Gemini provider configuration.
Symbols
GeminiProviderSetup
ProviderSetup[GeminiConnection]Provide presentation-independent Gemini setup operations.
Automatic discovery follows the Gemini SDK's API-key environment variable precedence. Validation resolves the configured API-key reference from either the environment or the protected credential store, then checks that it contains a value. It does not contact Gemini.
Attributes
Configuration key for the Gemini provider.
Human-readable provider name shown during setup.
Python import paths required by the integration.
Gemini connection schema produced 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,
secret_store: SecretStore | None = None,
) → SetupResult[GeminiConnection]Validate a Gemini connection's API-key reference locally.
The reference may point to an environment variable or an entry in the protected credential store. Validation checks that the reference can be resolved without contacting Gemini.
Parameters
Gemini connection containing an API-key reference.
Optional protected store used to resolve the API key.
Returns
The supplied configuration and any blocking validation errors.