Creates a new Mistral chat capability adapter.
Owning provider instance used for initialization checks and merged config access.
Initialized official Mistral SDK client.
Executes a non-streaming Mistral chat request.
Responsibilities:
chat.complete through the official SDKUnified chat request envelope.
Optional_ctx: MultiModalExecutionContextOptional execution context. Unused directly in this adapter.
Optionalsignal: AbortSignalOptional cancellation signal.
Provider-normalized assistant message response.
Executes a streaming Mistral chat request.
Responsibilities:
chat.stream through the official SDKdelta and accumulated output in normalized chunk formUnified streaming chat request envelope.
Optional_ctx: MultiModalExecutionContextOptional execution context. Unused directly in this adapter.
Optionalsignal: AbortSignalOptional cancellation signal.
Async stream of normalized chat chunks.
Adapts Mistral chat completions into ProviderPlaneAI's normalized chat response and stream chunk shapes.
Supports text and image inputs, batches streamed text deltas using
chatStreamBatchSize, and emits a terminal error chunk for non-abort streaming failures while keeping Mistral SDK event details local to the adapter.