Soenneker.Maf.Pool.Ollama
11.0.193
Prefix Reserved
dotnet add package Soenneker.Maf.Pool.Ollama --version 11.0.193
NuGet\Install-Package Soenneker.Maf.Pool.Ollama -Version 11.0.193
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.Ollama" Version="11.0.193" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Maf.Pool.Ollama" Version="11.0.193" />
<PackageReference Include="Soenneker.Maf.Pool.Ollama" />
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.Ollama --version 11.0.193
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Maf.Pool.Ollama, 11.0.193"
#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.Ollama@11.0.193
#: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.Ollama&version=11.0.193
#tool nuget:?package=Soenneker.Maf.Pool.Ollama&version=11.0.193
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Maf.Pool.Ollama
Provides Ollama-specific registration extensions for IMafPool, enabling integration with local LLMs via Microsoft Agent Framework.
Install
dotnet add package Soenneker.Maf.Pool.Ollama
Usage
using Soenneker.Maf.Pool.Ollama;
using Soenneker.Maf.Pool.Abstract;
await pool.AddOllama(
poolId: "chat",
key: "local-primary",
modelId: "llama3.2",
endpoint: "http://localhost:11434",
rpm: 60,
instructions: "Answer concisely.",
cancellationToken: cancellationToken);
(AIAgent? agent, IMafPoolEntry? entry) =
await pool.GetAvailable("chat", cancellationToken);
The Ollama server and requested model must already be available. Registration does not start Ollama or pull the model.
What you get
MafPoolOllamaExtension— Provides Ollama-specific registration extensions forIMafPool, enabling integration with local LLMs via Microsoft Agent Framework.
API at a glance
| API | What it does | Result / important behavior |
|---|---|---|
MafPoolOllamaExtension.AddOllama(pool, poolId, key, modelId, endpoint, rps, rpm, rpd, tokensPerDay, instructions, cancellationToken) |
Registers an Ollama model in the agent pool with optional rate/token limits. | A task that completes when the ollama addition is complete. |
MafPoolOllamaExtension.RemoveOllama(pool, poolId, key, cancellationToken) |
Unregisters an Ollama 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.
- Omitted instructions default to
You are a helpful assistant running locally via Ollama. - Checkout consumes one request from the configured quota.
tokensPerDayis not reconciled against actual model token usage. - Treat non-loopback HTTP endpoints as unencrypted; use an appropriately secured endpoint for remote Ollama servers.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- Microsoft.Extensions.AI.Ollama (>= 9.7.0-preview.1.25356.2)
- Soenneker.Maf.Pool (>= 11.0.207)
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 |
|---|---|---|
| 11.0.193 | 51 | 11/19/2026 |
| 11.0.192 | 48 | 11/18/2026 |
| 11.0.190 | 51 | 11/18/2026 |
| 11.0.189 | 66 | 11/15/2026 |
| 11.0.188 | 70 | 11/11/2026 |
| 11.0.187 | 59 | 11/11/2026 |
| 11.0.186 | 58 | 11/11/2026 |
| 11.0.185 | 58 | 11/11/2026 |
| 11.0.184 | 62 | 11/11/2026 |
| 11.0.183 | 75 | 11/7/2026 |
| 11.0.182 | 82 | 11/3/2026 |
| 11.0.181 | 63 | 11/3/2026 |
| 11.0.180 | 81 | 10/31/2026 |
| 11.0.179 | 75 | 10/27/2026 |
| 11.0.178 | 69 | 10/27/2026 |
| 11.0.177 | 76 | 10/27/2026 |
| 11.0.176 | 72 | 10/27/2026 |
| 11.0.175 | 69 | 10/27/2026 |
| 11.0.174 | 72 | 10/26/2026 |
| 11.0.172 | 67 | 10/26/2026 |
Loading failed
Updated Soenneker.Maf.Pool to 11.0.207