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.

Configuration discovery looks for the conventional Mistral API-key environment variable. Validation checks that the configured variable contains a plausibly sized API key.

Attributes

provider_type

Configuration key for the Mistral provider.

dependencies

Python import paths required by the integration.

Methods

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

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,
) → SetupResult[MistralConnection]

Validate a Mistral connection's API-key environment variable.

Mistral does not document a stable API-key prefix, so validation only checks presence and a plausible minimum length.

Parameters

config
type: MistralConnection

Mistral connection containing the environment-variable name.

Returns

type: SetupResult[MistralConnection]

The supplied configuration and any blocking validation errors.