Soenneker.SemanticKernel.Pool.Mistral
4.0.368
Prefix Reserved
dotnet add package Soenneker.SemanticKernel.Pool.Mistral --version 4.0.368
NuGet\Install-Package Soenneker.SemanticKernel.Pool.Mistral -Version 4.0.368
<PackageReference Include="Soenneker.SemanticKernel.Pool.Mistral" Version="4.0.368" />
<PackageVersion Include="Soenneker.SemanticKernel.Pool.Mistral" Version="4.0.368" />
<PackageReference Include="Soenneker.SemanticKernel.Pool.Mistral" />
paket add Soenneker.SemanticKernel.Pool.Mistral --version 4.0.368
#r "nuget: Soenneker.SemanticKernel.Pool.Mistral, 4.0.368"
#:package Soenneker.SemanticKernel.Pool.Mistral@4.0.368
#addin nuget:?package=Soenneker.SemanticKernel.Pool.Mistral&version=4.0.368
#tool nuget:?package=Soenneker.SemanticKernel.Pool.Mistral&version=4.0.368
Soenneker.SemanticKernel.Pool.Mistral
Mistral connector registration helpers for Soenneker.SemanticKernel.Pool.
Installation
dotnet add package Soenneker.SemanticKernel.Pool.Mistral
Add a Mistral entry
Resolve the pool and HTTP client cache from dependency injection, then register a chat or embedding entry:
using Soenneker.SemanticKernel.Enums.KernelType;
using Soenneker.SemanticKernel.Pool.Mistral;
await pool.AddMistral(
poolId: "chat",
key: "mistral-primary",
type: KernelType.Chat,
modelId: "mistral-model-id",
apiKey: configuration["Mistral:ApiKey"]!,
endpoint: "https://api.mistral.ai",
httpClientCache: httpClientCache,
rps: 2,
rpm: 60,
rpd: 1_000,
tokensPerDay: null,
cancellationToken);
Use KernelType.Chat for Mistral chat completion or KernelType.Embedding for the Mistral embedding generator. Other kernel types throw NotSupportedException when the pool first constructs the kernel.
The adapter caches chat HTTP clients under mistral:{poolId}:{key} with a five-minute timeout. The endpoint argument is retained in the entry's SemanticKernelOptions, but this adapter does not pass it to the Mistral connector; connector endpoint behavior therefore comes from the Mistral Semantic Kernel package.
Pool quota values are reservations made when GetAvailable selects the entry. tokensPerDay counts one unit per acquisition; it is not populated from provider token usage.
Remove the entry
Use the matching helper so both the pool entry and its cached HTTP client are removed:
await pool.RemoveMistral(
"chat",
"mistral-primary",
httpClientCache,
cancellationToken);
Keep the API key in a protected configuration provider and avoid logging or serializing the generated SemanticKernelOptions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.SemanticKernel.Connectors.MistralAI (>= 1.55.0-alpha)
- Soenneker.SemanticKernel.Pool (>= 4.0.382)
- Soenneker.Utils.HttpClientCache (>= 4.0.2031)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.368 | 22 | 8/30/2026 |
| 4.0.367 | 35 | 8/30/2026 |
| 4.0.366 | 47 | 8/29/2026 |
| 4.0.365 | 74 | 8/26/2026 |
| 4.0.364 | 73 | 8/26/2026 |
| 4.0.363 | 91 | 8/22/2026 |
| 4.0.362 | 83 | 8/21/2026 |
| 4.0.361 | 79 | 8/21/2026 |
| 4.0.360 | 87 | 8/21/2026 |
| 4.0.359 | 79 | 8/19/2026 |
| 4.0.358 | 89 | 8/19/2026 |
| 4.0.357 | 85 | 8/18/2026 |
| 4.0.356 | 91 | 8/18/2026 |
| 4.0.355 | 94 | 8/13/2026 |
| 4.0.354 | 100 | 8/13/2026 |
| 4.0.353 | 96 | 8/12/2026 |
| 4.0.352 | 91 | 8/12/2026 |
| 4.0.351 | 96 | 8/9/2026 |
| 4.0.350 | 95 | 8/9/2026 |
| 4.0.349 | 96 | 8/9/2026 |
Improve Mistral pool guidance