Creates a new Mistral provider instance.
ProtectedcapabilitiesSupport provider capabilities
ProtectedconfigCurrent connection config
Protected OptionalexecutorsReadonlyproviderType of this provider (OpenAI, Anthropic, Gemini, etc.)
Executes a non-streaming Mistral image analysis request.
Unified image analysis request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Provider-normalized image analysis artifacts.
Executes a streaming Mistral image analysis request.
Unified image analysis request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Async stream of normalized image analysis chunks.
Executes a non-streaming Mistral chat request.
Unified chat request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Provider-normalized assistant message response.
Executes a streaming Mistral chat request.
Unified streaming chat request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Async stream of normalized chat chunks.
Executes a Mistral embeddings request.
Unified embedding request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Provider-normalized embedding artifacts.
Returns the currently registered capability implementations for this provider.
Registered capability map.
Returns the implementation registered for a capability key.
Capability key type being resolved.
Capability key to resolve.
Registered capability implementation.
Resolve and merge configuration for a capability.
Merge precedence (low → high):
Model resolution fallback: runtimeOptions.model → config.defaultModels[capability] → config.defaultModel
Name of the capability.
Request-level override options.
Merged configuration with keys such as model, modelParams, providerParams, and generalParams.
Type-safe runtime check for a capability. Allows safe casting after confirming the capability is registered.
Capability key.
Capability symbol.
true when the capability is registered.
Initializes the Mistral provider and registers supported capabilities.
Responsibilities:
Provider connection configuration.
Check if the provider has been initialized.
true when the provider has been initialized.
ProtectedmergeDeep-merge multiple objects. Arrays override completely, objects are recursively merged, primitives override. Used for merging provider defaults, model configurations, and runtime options.
Objects to merge.
Deep-merged object.
Executes a Mistral moderation request.
Unified moderation request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Provider-normalized moderation artifacts.
Executes a Mistral OCR request.
Unified OCR request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Provider-normalized OCR artifacts.
ProtectedregisterRegister a capability implementation. Called by concrete providers to declare support for a capability.
Built-in capability key.
Capability symbol.
Implementation of the capability.
Registers a custom capability implementation.
Custom capability key.
Capability implementation.
Attaches client-registered executors used for dispatching custom capabilities.
Executor map.
Executes a non-streaming Mistral text-to-speech request.
Unified TTS request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Provider-normalized synthesized audio artifacts.
Executes a streaming Mistral text-to-speech request.
Unified streaming TTS request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Async stream of synthesized audio chunks.
Executes a non-streaming Mistral audio transcription request.
Unified transcription request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Provider-normalized transcript artifacts.
Executes a streaming Mistral audio transcription request.
Unified streaming transcription request envelope.
Execution context for timeline/state propagation.
Optionalsignal: AbortSignalOptional cancellation signal.
Async stream of transcript chunks.
Protected StaticsanitizeStrips keys from providerParams that must never be forwarded to an SDK
constructor because they can redirect API traffic or override credentials.
Blocked keys across all supported SDKs:
baseURL / baseUrl — redirects all provider traffic to an arbitrary host,
causing the API key to be sent to an attacker-controlled server.apiKey / authToken — would silently override the key already set from config.httpAgent — custom HTTP agent can route traffic through an arbitrary proxy.fetch / globalFetch — custom fetch implementations can intercept all requests.httpOptions — Gemini SDK wrapper for baseUrl and custom fetch.Raw providerParams from caller config.
Params with dangerous constructor keys removed.
MistralProvider: concrete BaseProvider implementation for Mistral AI.
Responsibilities:
Supported v1 capabilities:
Description
Provider capability implementation for MistralProvider.