yera.setup.provider_setup.gemini

Obtain and validate Gemini provider configuration.

Symbols

class GeminiProviderSetup — Provide presentation-independent Gemini setup operations.

GeminiProviderSetup

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

provider_type

Configuration key for the Gemini provider.

display_name

Human-readable provider name shown during setup.

dependencies

Python import paths required by the integration.

connection_cls

Gemini connection schema produced by the integration.

Methods

get_config — Obtain Gemini configuration from the current environment.
validate — Validate a Gemini connection's API-key reference locally.

GeminiProviderSetup.get_config

get_config() → SetupResult[tuple[GeminiConnection, ...]]

Obtain Gemini configuration from the current environment.

Returns

type: SetupResult[tuple[GeminiConnection, ...]]

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

config
type: GeminiConnection

Gemini connection containing an API-key reference.

secret_store
type: SecretStore | None = None

Optional protected store used to resolve the API key.

Returns

type: SetupResult[GeminiConnection]

The supplied configuration and any blocking validation errors.