yera.providers.mistral_common

Common infra for accessing Mistral services.

Symbols

def get_mistral_client — Build a Mistral client from a configured connection.

get_mistral_client

get_mistral_client(
    connection: MistralConnection,
    secret_store: SecretStore | None = None,
) → Mistral

Build a Mistral client from a configured connection.

Parameters

connection
type: MistralConnection

Mistral connection containing an API-key reference.

secret_store
type: SecretStore | None = None

Optional store override for resolving a stored key.

Returns

type: Mistral

Mistral client authenticated with the resolved API key.

Raises

ProviderCredentialError

If the referenced API key cannot be resolved.