Soenneker.SemanticKernel.Pool.Ollama
4.0.541
Prefix Reserved
dotnet add package Soenneker.SemanticKernel.Pool.Ollama --version 4.0.541
NuGet\Install-Package Soenneker.SemanticKernel.Pool.Ollama -Version 4.0.541
<PackageReference Include="Soenneker.SemanticKernel.Pool.Ollama" Version="4.0.541" />
<PackageVersion Include="Soenneker.SemanticKernel.Pool.Ollama" Version="4.0.541" />
<PackageReference Include="Soenneker.SemanticKernel.Pool.Ollama" />
paket add Soenneker.SemanticKernel.Pool.Ollama --version 4.0.541
#r "nuget: Soenneker.SemanticKernel.Pool.Ollama, 4.0.541"
#:package Soenneker.SemanticKernel.Pool.Ollama@4.0.541
#addin nuget:?package=Soenneker.SemanticKernel.Pool.Ollama&version=4.0.541
#tool nuget:?package=Soenneker.SemanticKernel.Pool.Ollama&version=4.0.541
Soenneker.SemanticKernel.Pool.Ollama
Ollama connector registration helpers for Soenneker.SemanticKernel.Pool.
Installation
dotnet add package Soenneker.SemanticKernel.Pool.Ollama
Add an Ollama entry
Resolve the pool and HTTP client cache from dependency injection, then register the model exposed by your Ollama server:
using Soenneker.SemanticKernel.Enums.KernelType;
using Soenneker.SemanticKernel.Pool.Ollama;
await pool.AddOllama(
poolId: "chat",
key: "local-llama",
type: KernelType.Chat,
modelId: "llama3.2",
endpoint: "http://localhost:11434",
httpClientCache: httpClientCache,
rps: null,
rpm: null,
rpd: null,
cancellationToken: cancellationToken);
Supported types are:
KernelType.Chatfor Ollama chat completionKernelType.Completionfor text generationKernelType.Embeddingfor embedding generation
Other types throw NotSupportedException when the pool first constructs the kernel.
The adapter creates an HTTP client with the supplied endpoint as its base address, a five-minute timeout, and the cache key ollama:{poolId}:{key}. The optional apiKey is stored in SemanticKernelOptions but is not added to HTTP requests by this adapter. Configure authentication separately if the endpoint requires it.
Pool quota values are reservations made when GetAvailable selects the entry. tokensPerDay counts one unit per acquisition; it is not populated from model token usage.
Remove the entry
Use the matching helper so both the pool entry and cached HTTP client are removed:
await pool.RemoveOllama(
"chat",
"local-llama",
httpClientCache,
cancellationToken);
| 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.Ollama (>= 1.51.0-alpha)
- Soenneker.SemanticKernel.Pool (>= 4.0.386)
- Soenneker.Utils.HttpClientCache (>= 4.0.2045)
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.541 | 0 | 8/31/2026 |
| 4.0.540 | 0 | 8/30/2026 |
| 4.0.539 | 0 | 8/30/2026 |
| 4.0.538 | 0 | 8/30/2026 |
| 4.0.537 | 0 | 8/30/2026 |
| 4.0.536 | 0 | 8/30/2026 |
| 4.0.535 | 25 | 8/30/2026 |
| 4.0.534 | 38 | 8/30/2026 |
| 4.0.533 | 39 | 8/29/2026 |
| 4.0.532 | 39 | 8/29/2026 |
| 4.0.531 | 36 | 8/29/2026 |
| 4.0.530 | 38 | 8/26/2026 |
| 4.0.529 | 53 | 8/26/2026 |
| 4.0.528 | 91 | 8/22/2026 |
| 4.0.527 | 90 | 8/22/2026 |
| 4.0.526 | 90 | 8/21/2026 |
| 4.0.525 | 94 | 8/19/2026 |
| 4.0.524 | 83 | 8/18/2026 |
| 4.0.523 | 85 | 8/18/2026 |
| 4.0.522 | 87 | 8/18/2026 |
Update dependency Soenneker.Utils.HttpClientCache to 4.0.2045 (#890)