Soenneker.Maf.Pool.OpenAI.Azure 11.0.226

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

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

Install

dotnet add package Soenneker.Maf.Pool.OpenAI.Azure

Usage

using Soenneker.Maf.Pool.OpenAI.Azure;
using Soenneker.Maf.Pool.Abstract;

await pool.AddAzureOpenAI(
    poolId: "chat",
    key: "azure-primary",
    deploymentName: "chat-production",
    apiKey: configuration["AZURE_OPENAI_API_KEY"]!,
    endpoint: configuration["AZURE_OPENAI_ENDPOINT"]!,
    rpm: 60,
    instructions: "Answer concisely.",
    cancellationToken: cancellationToken);

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

Use the Azure resource endpoint, such as https://my-resource.openai.azure.com, and the Azure deployment name—not the underlying model name.

What you get

  • MafPoolAzureOpenAIExtension — Provides Azure OpenAI-specific registration extensions for IMafPool, enabling integration via Microsoft Agent Framework.

API at a glance

API What it does Result / important behavior
MafPoolAzureOpenAIExtension.AddAzureOpenAI(pool, poolId, key, deploymentName, apiKey, endpoint, rps, rpm, rpd, tokensPerDay, instructions, cancellationToken) Registers an Azure OpenAI model in the agent pool with optional rate/token limits. A task that completes when the azure openai addition is complete.
MafPoolAzureOpenAIExtension.RemoveAzureOpenAI(pool, poolId, key, cancellationToken) Unregisters an Azure OpenAI 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 Azure's actual token usage.
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.226 39 11/15/2026
11.0.225 109 11/11/2026
11.0.224 87 11/11/2026
11.0.223 83 11/11/2026
11.0.222 87 11/11/2026
11.0.221 82 11/11/2026
11.0.220 117 11/7/2026
11.0.219 117 11/3/2026
11.0.218 104 11/3/2026
11.0.217 100 11/2/2026
11.0.216 126 10/31/2026
11.0.215 109 10/30/2026
11.0.214 121 10/27/2026
11.0.213 104 10/27/2026
11.0.212 95 10/27/2026
11.0.211 98 10/27/2026
11.0.210 99 10/27/2026
11.0.209 105 10/26/2026
11.0.208 102 10/26/2026
11.0.206 102 10/26/2026
Loading failed

Updated Soenneker.Maf.Pool to 11.0.203