A Microsoft.Extensions.AI IChatClient implementation for the Mistral chat completions API, with real SSE token streaming and tool calling.
Get Started
| Product | Versions |
|---|---|
| .NET |
README
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.
Downloads by Version
Similar & Alternative Packages
Hand-picked matching NuGet libraries based on tags & ecosystem
Depended On By
Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.