![]() |
VOOZH | about |
dotnet add package AgentFrameworkToolkit --version 1.10.0
NuGet\Install-Package AgentFrameworkToolkit -Version 1.10.0
<PackageReference Include="AgentFrameworkToolkit" Version="1.10.0" />
<PackageVersion Include="AgentFrameworkToolkit" Version="1.10.0" />Directory.Packages.props
<PackageReference Include="AgentFrameworkToolkit" />Project file
paket add AgentFrameworkToolkit --version 1.10.0
#r "nuget: AgentFrameworkToolkit, 1.10.0"
#:package AgentFrameworkToolkit@1.10.0
#addin nuget:?package=AgentFrameworkToolkit&version=1.10.0Install as a Cake Addin
#tool nuget:?package=AgentFrameworkToolkit&version=1.10.0Install as a Cake Tool
👁 GitHub Actions Workflow Status
👁 GitHub Issues or Pull Requests by label
👁 Libraries.io dependency status for GitHub repo
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:
Things like the above, while doable, are very cumbersome and are not discoverable in Microsoft Agent Framework, as it has decided to be very generic.
Agent Framework Toolkit resolves these issues by offering Provider-specific wrappers around Microsoft Agent Framework 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.
👁 With and Without Agent Framework Toolkit
The above sample shows how the code looks with and without the Agent Framework Toolkit. You can get more details in this video.
The following providers are currently supported (check out the individual READMEs for details and samples)
| Provider | Supported Features | ||
|---|---|---|---|
| Amazon Bedrock | AgentFactory, AIToolsFactory |
👁 NuGet |
👁 README |
| Anthropic (Claude) | AgentFactory, AIToolsFactory |
👁 NuGet |
👁 README |
| Azure OpenAI | AgentFactory, AIToolsFactory, EmbeddingFactory, BatchRunner |
👁 NuGet |
👁 README |
| Cerebras | AgentFactory, AIToolsFactory |
👁 NuGet |
👁 README |
| Cohere | AgentFactory, AIToolsFactory |
👁 NuGet |
👁 README |
| GitHub Models | AgentFactory, AIToolsFactory |
👁 NuGet |
👁 README |
| Google (Gemini) | AgentFactory, AIToolsFactory, EmbeddingFactory |
👁 NuGet |
👁 README |
| Mistral | AgentFactory, AIToolsFactory, EmbeddingFactory |
👁 NuGet |
👁 README |
| OpenAI | AgentFactory, AIToolsFactory, EmbeddingFactory, BatchRunner |
👁 NuGet |
👁 README |
| OpenRouter | AgentFactory, AIToolsFactory, EmbeddingFactory |
👁 NuGet |
👁 README |
| XAI (Grok) | AgentFactory, AIToolsFactory |
👁 NuGet |
👁 README |
Tip: For other OpenAI-based providers, you can use the OpenAI Package and provide a custom endpoint
| Package | Purpose | ||
|---|---|---|---|
| AgentFrameworkToolkit.Tools | Build AITool instances from classes and use common tools |
👁 NuGet |
👁 README |
| AgentFrameworkToolkit.Tools.ModelContextProtocol | Consume local or remote MCP servers as AITool instances |
👁 NuGet |
👁 README |
| AgentSkillsDotNet | Load AgentSkills and expose them as tools or instructions | 👁 NuGet |
👁 README |
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";
ChatClientAgentResponse<WeatherReport> response = await agent.RunAsync<WeatherReport>(question);
WeatherReport weatherReport = response.Result;
//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 no constructor dependencies)
IList<AITool> tools = aiToolsFactory.GetTools(typeof(MyTools));
//or
IList<AITool> tools = aiToolsFactory.GetTools(new MyTools());
AIToolsFactory aiToolsFactory = new();
await using McpClientTools mcpClient =
await aiToolsFactory.GetToolsFromRemoteMcpAsync("https://mcp.example.com");
IList<AITool> tools = mcpClient.Tools;
AgentSkillsFactory agentSkillsFactory = new();
AgentSkills agentSkills = agentSkillsFactory.GetAgentSkills("<FolderWithSkillsAsSubFolders>");
IList<AITool> tools = agentSkills.GetAsTools();
string instructions = agentSkills.GetInstructions();
OpenAIBatchRunner batchRunner = new("<apiKey>");
ChatBatchRun run = await batchRunner.RunChatBatchAsync(
new ChatBatchOptions
{
Model = OpenAIChatModels.Gpt5Mini
},
[
ChatBatchRequest.Create("Summarize this text.")
]);
More Info
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on AgentFrameworkToolkit:
| Package | Downloads |
|---|---|
|
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.Anthropic
An opinionated C# Toolkit targeting Anthropic 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 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.10.0 | 315 | 6/10/2026 |
| 1.9.0 | 587 | 6/4/2026 |
| 1.8.0 | 460 | 5/28/2026 |
| 1.7.0 | 249 | 5/27/2026 |
| 1.6.2 | 282 | 5/20/2026 |
| 1.6.1 | 318 | 5/14/2026 |
| 1.5.0 | 239 | 5/14/2026 |
| 1.4.0 | 531 | 5/5/2026 |
| 1.3.0 | 1,325 | 4/24/2026 |
| 1.2.0 | 320 | 4/22/2026 |
| 1.1.0 | 918 | 4/10/2026 |
| 1.0.0 | 933 | 4/2/2026 |
| 1.0.0-rc5 | 316 | 3/31/2026 |
| 1.0.0-rc4.2 | 80 | 3/31/2026 |
| 1.0.0-rc4.1 | 79 | 3/31/2026 |
| 1.0.0-rc4 | 1,305 | 3/12/2026 |
| 1.0.0-rc3.1 | 503 | 3/8/2026 |
| 1.0.0-rc3 | 297 | 3/4/2026 |
| 1.0.0-rc2 | 818 | 2/26/2026 |
| 1.0.0-rc1 | 590 | 2/21/2026 |