AgentFrameworkToolkit 1.0.0-preview.260108.1
dotnet add package AgentFrameworkToolkit --version 1.0.0-preview.260108.1
NuGet\Install-Package AgentFrameworkToolkit -Version 1.0.0-preview.260108.1
<PackageReference Include="AgentFrameworkToolkit" Version="1.0.0-preview.260108.1" />
<PackageVersion Include="AgentFrameworkToolkit" Version="1.0.0-preview.260108.1" />
<PackageReference Include="AgentFrameworkToolkit" />
paket add AgentFrameworkToolkit --version 1.0.0-preview.260108.1
#r "nuget: AgentFrameworkToolkit, 1.0.0-preview.260108.1"
#:package AgentFrameworkToolkit@1.0.0-preview.260108.1
#addin nuget:?package=AgentFrameworkToolkit&version=1.0.0-preview.260108.1&prerelease
#tool nuget:?package=AgentFrameworkToolkit&version=1.0.0-preview.260108.1&prerelease
Agent Framework Toolkit
Welcome to Agent Framework Toolkit; An opinionated C# Wrapper for Microsoft Agent Framework that makes life easier
When using the Microsoft Agent Framework, it is very simple, as long as you do not need to do anything advanced. So setting things like 'model', 'instructions', and 'tools' is a breeze. But the second you need to do something slightly more advanced, you end up with questions:
- How to work with Anthropic's Claude?
- How do you set the reasoning effort in OpenAI or Google?
- How do you add Tool Calling Middleware?
- How do you create Tools from a class or MCP Server?
Things like the above, while doable, are very cumbersome and are not discoverable, as Microsoft Agent Framework have decided to be very generic.
Agent Framework Toolkit resolves these issues by offering Provider-specific wrappers around Microsoft Agent Framwork, that are tailored to the specific provider while keeping 100% compatibility with the rest of Microsoft Agent Framework. The result is less code and much easier code for you to write.
The above sample shows how the code looks with and without the Agent Framework Toolkit. You can get more details in this video.
Supported Providers
The following providers are currently supported (check out the individual README's for details and samples)
Tip: For other OpenAI-based providers, you can use the OpenAI Package and provide a custom endpoint
Code sample (AgentFactory)
using Azure OpenAI, easily setting Reasoning Effort and Tool Calling Middleware (see individual Provider README for detailed examples)
AzureOpenAIAgentFactory agentFactory = new("<endpoint>", "<apiKey>");
AzureOpenAIAgent agent = agentFactory.CreateAgent(new AgentOptions
{
Model = OpenAIChatModels.Gpt5Mini,
ReasoningEffort = OpenAIReasoningEffort.Low,
Tools = [AIFunctionFactory.Create(WeatherTool.GetWeather)],
RawToolCallDetails = details => { Console.WriteLine(details.ToString()); }
});
string question = "What is the Weather like in Paris";
ChatClientAgentRunResponse<WeatherReport> response = await agent.RunAsync<WeatherReport>(question);
WeatherReport weatherReport = response.Result;
Code sample (AIToolsFactory)
//1. Make your tool-class and add [AITool] attributes
public class MyTools
{
[AITool]
public string MyTool1()
{
return "hello";
}
[AITool]
public string MyTool2()
{
return "world";
}
}
//2. Get your tool by either instance or Type (if not contructor dependencies)
IList<AITool> tools = aiToolsFactory.GetTools(typeof(MyTools));
//or
IList<AITool> tools = aiToolsFactory.GetTools(new MyTools());
More Info
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- AgentSkillsDotNet (>= 1.0.0-preview.260108.1)
- JetBrains.Annotations (>= 2025.2.4)
- Microsoft.Agents.AI (>= 1.0.0-preview.260108.1)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on AgentFrameworkToolkit:
| Package | Downloads |
|---|---|
|
AgentFrameworkToolkit.Anthropic
An opinionated C# Toolkit targeting Anthropic for Microsoft Agent Framework that makes life eaisier |
|
|
AgentFrameworkToolkit.OpenAI
An opinionated C# Toolkit targeting OpenAI for Microsoft Agent Framework that makes life eaisier |
|
|
AgentFrameworkToolkit.Google
An opinionated C# Toolkit targeting Google for Microsoft Agent Framework that makes life eaisier |
|
|
AgentFrameworkToolkit.Mistral
An opinionated C# Toolkit targeting Mistral for Microsoft Agent Framework that makes life eaisier |
|
|
AgentFrameworkToolkit.GitHub
An opinionated C# Toolkit targeting GitHubModels for Microsoft Agent Framework that makes life eaisier |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-preview.260108.1 | 74 | 1/9/2026 |
| 1.0.0-preview.260104.1 | 147 | 1/4/2026 |
| 1.0.0-preview.251230.1 | 60 | 12/30/2025 |
| 1.0.0-preview.251226.1 | 107 | 12/26/2025 |
| 1.0.0-preview.251224.1 | 144 | 12/24/2025 |
| 1.0.0-preview.251222.1 | 636 | 12/22/2025 |
| 1.0.0-preview.251220.1 | 177 | 12/20/2025 |
| 1.0.0-preview.251219.1 | 242 | 12/19/2025 |
| 1.0.0-preview.251217.1 | 335 | 12/17/2025 |
| 1.0.0-preview.251215.1 | 305 | 12/15/2025 |
| 1.0.0-preview.251204.1 | 336 | 12/5/2025 |
| 1.0.0-preview.251201.1 | 460 | 12/1/2025 |
| 1.0.0-preview.251129.1 | 80 | 11/29/2025 |
| 1.0.0-preview.251126.2 | 201 | 11/26/2025 |
| 1.0.0-preview.251126.1 | 149 | 11/26/2025 |
| 1.0.0-preview.251123.1 | 192 | 11/23/2025 |
| 1.0.0-preview.251121.3 | 291 | 11/21/2025 |
| 1.0.0-preview.251121.2 | 321 | 11/21/2025 |