AgentFrameworkToolkit 1.0.0-preview.251215.1
dotnet add package AgentFrameworkToolkit --version 1.0.0-preview.251215.1
NuGet\Install-Package AgentFrameworkToolkit -Version 1.0.0-preview.251215.1
<PackageReference Include="AgentFrameworkToolkit" Version="1.0.0-preview.251215.1" />
<PackageVersion Include="AgentFrameworkToolkit" Version="1.0.0-preview.251215.1" />
<PackageReference Include="AgentFrameworkToolkit" />
paket add AgentFrameworkToolkit --version 1.0.0-preview.251215.1
#r "nuget: AgentFrameworkToolkit, 1.0.0-preview.251215.1"
#:package AgentFrameworkToolkit@1.0.0-preview.251215.1
#addin nuget:?package=AgentFrameworkToolkit&version=1.0.0-preview.251215.1&prerelease
#tool nuget:?package=AgentFrameworkToolkit&version=1.0.0-preview.251215.1&prerelease
AgentFramework Toolkit
An opinionated C# Toolkit for Microsoft Agent Framework that makes life easier
NuGet
OpenAI | Azure OpenAI | Google (Gemini) | Anthropic (Claude) | XAI (Grok) | Mistral | OpenRouter | GitHub
Examples of use
All agents have AIAgent as base, fully work the rest of Microsoft Agent Framework)
OpenAI
OpenAIAgentFactory factory = new OpenAIAgentFactory(new OpenAIConnection
{
ApiKey = configuration.OpenAiApiKey,
NetworkTimeout = TimeSpan.FromMinutes(5)
});
OpenAIAgent agent = factory.CreateAgent(new OpenAIAgentOptionsForResponseApiWithReasoning
{
Model = "gpt-5",
ReasoningEffort = ResponseReasoningEffortLevel.High,
ReasoningSummaryVerbosity = ResponseReasoningSummaryVerbosity.Detailed,
});
GoogleAgentFactory factory = new(new GoogleConnection
{
ApiKey = configuration.GoogleGeminiApiKey
});
GoogleAgent agent = factory.CreateAgent(new GoogleAgentOptions
{
Model = GenerativeAI.GoogleAIModels.Gemini25Pro,
Tools = [AIFunctionFactory.Create(GetWeather)]
});
Anthropic
AnthropicAgentFactory factory = new AnthropicAgentFactory("<AnthropicApiKey">);
factory.CreateAgent(new AnthropicAgentOptions
{
Model = "claude-sonnet-4-5",
MaxOutputTokens = 10000, // <-- Force the MaxToken property I always forget
BudgetTokens = 5000
});
X AI
XAIAgentFactory factory = new(new XAIConnection
{
ApiKey = configuration.XAiGrokApiKey
});
XAIAgent agent = factory.CreateAgent(new OpenAIAgentOptionsForChatClientWithoutReasoning
{
Model = "grok-4-fast-non-reasoning",
Tools = [AIFunctionFactory.Create(GetWeather)]
});
Mistral
MistralAgentFactory mistralAgentFactory = new MistralAgentFactory("<MistralApiKey>");
MistralAgent mistralAgent = mistralAgentFactory.CreateAgent(new MistralAgentOptions
{
Model = Mistral.SDK.ModelDefinitions.MistralSmall
});
Azure AI (with every optional setting added for demonstration)
AzureOpenAIAgent fullBlownAgent = azureOpenAIAgentFactory.CreateAgent(new OpenAIAgentOptionsForResponseApiWithReasoning
{
Id = "1234",
Name = "MyAgent",
Description = "The description of my agent",
Instructions = "Speak like a pirate",
Model = "gpt-5-mini",
ReasoningEffort = ResponseReasoningEffortLevel.Low,
ReasoningSummaryVerbosity = ResponseReasoningSummaryVerbosity.Detailed,
Tools = [AIFunctionFactory.Create(GetWeather)],
RawToolCallDetails = details => { Console.WriteLine(details.ToString()); },
RawHttpCallDetails = details =>
{
Console.WriteLine($"URL: {details.RequestUrl}");
Console.WriteLine($"Request: {details.RequestJson}");
Console.WriteLine($"Response: {details.ResponseJson}");
}
});
| 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
- JetBrains.Annotations (>= 2025.2.2)
- Microsoft.Agents.AI (>= 1.0.0-preview.251204.1)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on AgentFrameworkToolkit:
| Package | Downloads |
|---|---|
|
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.OpenAI
An opinionated C# Toolkit targeting OpenAI 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.251215.1 | 43 | 12/15/2025 |
| 1.0.0-preview.251204.1 | 285 | 12/5/2025 |
| 1.0.0-preview.251201.1 | 449 | 12/1/2025 |
| 1.0.0-preview.251129.1 | 65 | 11/29/2025 |
| 1.0.0-preview.251126.2 | 185 | 11/26/2025 |
| 1.0.0-preview.251126.1 | 139 | 11/26/2025 |
| 1.0.0-preview.251123.1 | 168 | 11/23/2025 |
| 1.0.0-preview.251121.3 | 282 | 11/21/2025 |
| 1.0.0-preview.251121.2 | 308 | 11/21/2025 |