yera.setup.provider_setup.mistral
Obtain and validate Mistral provider configuration.
Symbols
MistralProviderSetup
ProviderSetup[MistralConnection]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
Configuration key for the Mistral provider.
Python import paths required by the integration.
Methods
MistralProviderSetup.get_config
get_config() → SetupResult[tuple[MistralConnection, ...]]Obtain Mistral configuration from the current environment.
Returns
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
Mistral connection containing the environment-variable name.
Returns
The supplied configuration and any blocking validation errors.