yera.setup.provider_setup.mistral

Obtain and validate Mistral provider configuration.

Symbols

class MistralProviderSetup — Provide presentation-independent Mistral setup operations.

MistralProviderSetup

Provide presentation-independent Mistral setup operations.

Automatic discovery looks for the conventional Mistral API-key environment variable. Validation resolves the configured API-key reference from either the environment or the protected credential store, then checks its length locally. It does not contact Mistral.

Attributes

provider_type

Configuration key for the Mistral provider.

display_name

Human-readable provider name shown during setup.

dependencies

Python import paths required by the integration.

connection_cls

Mistral connection schema produced by the integration.

Methods

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

MistralProviderSetup.get_config

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

Obtain Mistral configuration from the current environment.

Returns

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

A result containing a connection referencing MISTRAL_API_KEY when it is present. Otherwise, the result contains no configuration.

MistralProviderSetup.validate

validate(
    config: MistralConnection,
    secret_store: SecretStore | None = None,
) → SetupResult[MistralConnection]

Validate a Mistral connection's API-key reference locally.

The reference may point to an environment variable or an entry in the protected credential store. Mistral does not document a stable API-key prefix, so validation checks only that the resolved key has a plausible minimum length. It does not contact Mistral.

Parameters

config
type: MistralConnection

Mistral connection containing the API-key reference.

secret_store
type: SecretStore | None = None

Optional protected store used to resolve the API key.

Returns

type: SetupResult[MistralConnection]

The supplied configuration and any blocking validation errors.