Soenneker.Maf.Pool.Anthropic 11.0.198

Prefix Reserved
dotnet add package Soenneker.Maf.Pool.Anthropic --version 11.0.198
                    
NuGet\Install-Package Soenneker.Maf.Pool.Anthropic -Version 11.0.198
                    
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.Anthropic" Version="11.0.198" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Maf.Pool.Anthropic" Version="11.0.198" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Maf.Pool.Anthropic" />
                    
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.Anthropic --version 11.0.198
                    
#r "nuget: Soenneker.Maf.Pool.Anthropic, 11.0.198"
                    
#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.Anthropic@11.0.198
                    
#: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.Anthropic&version=11.0.198
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Maf.Pool.Anthropic&version=11.0.198
                    
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.Anthropic

Provides Anthropic-specific registration extensions for IMafPool, enabling integration via Microsoft Agent Framework.

Install

dotnet add package Soenneker.Maf.Pool.Anthropic

Usage

using Soenneker.Maf.Pool.Anthropic;
using Soenneker.Maf.Pool.Abstract;

await pool.AddAnthropic(
    poolId: "chat",
    key: "claude-primary",
    modelId: "claude-sonnet-4-5",
    apiKey: configuration["ANTHROPIC_API_KEY"]!,
    rpm: 60,
    instructions: "Answer concisely.",
    cancellationToken: cancellationToken);

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

pool is an IMafPool registered by Soenneker.Maf.Pool. The agent is created lazily on its first successful checkout and then reused for the entry.

What you get

  • MafPoolAnthropicExtension — Provides Anthropic-specific registration extensions for IMafPool, enabling integration via Microsoft Agent Framework.

API at a glance

API What it does Result / important behavior
MafPoolAnthropicExtension.AddAnthropic(pool, poolId, key, modelId, apiKey, rps, rpm, rpd, tokensPerDay, instructions, cancellationToken) Registers an Anthropic model in the agent pool with optional rate/token limits. A task that completes when the anthropic addition is complete.
MafPoolAnthropicExtension.RemoveAnthropic(pool, poolId, key, cancellationToken) Unregisters an Anthropic 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

  • 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 also charged once per checkout; this adapter does not reconcile actual provider token usage.
  • Call RemoveAnthropic() to unregister the entry and evict its cached agent.
Product 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.

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.198 52 11/15/2026
11.0.197 664 11/11/2026
11.0.196 90 11/11/2026
11.0.195 92 11/11/2026
11.0.194 157 11/11/2026
11.0.193 4,038 11/7/2026
11.0.192 5,722 11/7/2026
11.0.191 7,087 11/3/2026
11.0.190 668 11/3/2026
11.0.189 7,087 10/31/2026
11.0.188 124 10/30/2026
11.0.187 215 10/27/2026
11.0.186 109 10/27/2026
11.0.185 99 10/27/2026
11.0.184 135 10/27/2026
11.0.183 111 10/26/2026
11.0.182 108 10/26/2026
11.0.181 100 10/26/2026
11.0.180 117 10/26/2026
11.0.179 124 10/26/2026
Loading failed

Updated Soenneker.Maf.Pool to 11.0.203