Soenneker.Maf.Pool.Mistral 4.0.142

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Maf.Pool.Mistral --version 4.0.142
                    
NuGet\Install-Package Soenneker.Maf.Pool.Mistral -Version 4.0.142
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Maf.Pool.Mistral" Version="4.0.142" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Maf.Pool.Mistral" Version="4.0.142" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Maf.Pool.Mistral" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Maf.Pool.Mistral --version 4.0.142
                    
#r "nuget: Soenneker.Maf.Pool.Mistral, 4.0.142"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Maf.Pool.Mistral@4.0.142
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Maf.Pool.Mistral&version=4.0.142
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Maf.Pool.Mistral&version=4.0.142
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Maf.Pool.Mistral

Provides Mistral-specific registration extensions for IMafPool, enabling integration via Microsoft Agent Framework (OpenAI-compatible API).

Install

dotnet add package Soenneker.Maf.Pool.Mistral

Usage

using Soenneker.Maf.Pool.Mistral;
using Soenneker.Maf.Pool.Abstract;

await pool.AddMistral(
    poolId: "chat",
    key: "mistral-primary",
    modelId: "mistral-small-latest",
    apiKey: configuration["MISTRAL_API_KEY"]!,
    rpm: 60,
    instructions: "Answer concisely.",
    cancellationToken: cancellationToken);

(AIAgent? agent, IMafPoolEntry? entry) =
    await pool.GetAvailable("chat", cancellationToken);

The default endpoint is Mistral's OpenAI-compatible https://api.mistral.ai/v1. Supply endpoint when using another compatible deployment.

What you get

  • MafPoolMistralExtension — Provides Mistral-specific registration extensions for IMafPool, enabling integration via Microsoft Agent Framework (OpenAI-compatible API).

API at a glance

API What it does Result / important behavior
MafPoolMistralExtension.AddMistral(pool, poolId, key, modelId, apiKey, endpoint, rps, rpm, rpd, tokensPerDay, instructions, cancellationToken) Registers a Mistral model in the agent pool with optional rate/token limits. Uses Mistral's OpenAI-compatible API. A task that completes when the mistral addition is complete.
MafPoolMistralExtension.RemoveMistral(pool, poolId, key, cancellationToken) Unregisters a Mistral model from the agent pool and removes the associated cache entry. True if the entry existed and was removed; false if it was not present.

Practical notes

  • The agent is created lazily and reused until its entry is removed.
  • Store the API key in a secret provider; the pool retains it in the entry options while the entry is registered.
  • Omitted instructions default to You are a helpful assistant.
  • Checkout consumes one request from the configured quota. tokensPerDay is not reconciled against actual provider token usage.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.143 26 9/1/2026
4.0.142 37 8/31/2026
4.0.141 40 8/31/2026
4.0.140 39 8/31/2026
4.0.139 41 8/31/2026
4.0.138 47 8/31/2026
4.0.137 41 8/30/2026
4.0.136 45 8/30/2026
4.0.135 131 8/29/2026
4.0.134 43 8/29/2026
4.0.133 72 8/26/2026
4.0.132 72 8/26/2026
4.0.131 84 8/23/2026
4.0.130 89 8/22/2026
4.0.129 88 8/21/2026
4.0.128 93 8/19/2026
4.0.127 85 8/18/2026
4.0.126 88 8/18/2026
4.0.125 102 8/14/2026
4.0.124 102 8/13/2026
Loading failed

Updated NuGet packages