Ae.Mistral
0.4.3
dotnet add package Ae.Mistral --version 0.4.3
NuGet\Install-Package Ae.Mistral -Version 0.4.3
<PackageReference Include="Ae.Mistral" Version="0.4.3" />
<PackageVersion Include="Ae.Mistral" Version="0.4.3" />
<PackageReference Include="Ae.Mistral" />
paket add Ae.Mistral --version 0.4.3
#r "nuget: Ae.Mistral, 0.4.3"
#:package Ae.Mistral@0.4.3
#addin nuget:?package=Ae.Mistral&version=0.4.3
#tool nuget:?package=Ae.Mistral&version=0.4.3
Ae.Mistral
A Microsoft.Extensions.AI IChatClient implementation for the Mistral chat completions API: hand-written DTOs, real token-by-token SSE streaming, and tool calling.
Usage
using Ae.Mistral;
using Microsoft.Extensions.AI;
IChatClient client = new MistralChatClient(new MistralClient(apiKey), MistralModels.MistralLargeLatest);
await foreach (var update in client.GetStreamingResponseAsync(
[new ChatMessage(ChatRole.User, "Say hello in one short sentence.")]))
{
Console.Write(update.Text);
}
See samples/ChatSample for a fuller example including tool calling.
Testing
dotnet test runs the unit test suite (no network access required). A separate set of integration
tests under tests/Ae.Mistral.Tests/Integration/ hits the live Mistral API and needs an API key,
set via user-secrets, and run with the Integration category included:
dotnet user-secrets set "mistral:apiKey" "<your-key>" --project tests/Ae.Mistral.Tests
dotnet test --filter "Category=Integration"
CI excludes the Integration category since it has no secret configured.
Status
Early, built for internal use. Published to NuGet as Ae.Mistral.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.Extensions.AI.Abstractions (>= 10.7.0)
-
net8.0
- Microsoft.Extensions.AI.Abstractions (>= 10.7.0)
- System.Net.ServerSentEvents (>= 9.0.17)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.