yera.setup.provider_setup.mistral
Obtain and validate Mistral provider configuration.
Symbols
MistralProviderSetup
ProviderSetup[MistralConnection]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
Configuration key for the Mistral provider.
Human-readable provider name shown during setup.
Python import paths required by the integration.
Mistral connection schema produced 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,
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
Mistral connection containing the API-key reference.
Optional protected store used to resolve the API key.
Returns
The supplied configuration and any blocking validation errors.