Agentic.NET
0.3.0-preview
dotnet add package Agentic.NET --version 0.3.0-preview
NuGet\Install-Package Agentic.NET -Version 0.3.0-preview
<PackageReference Include="Agentic.NET" Version="0.3.0-preview" />
<PackageVersion Include="Agentic.NET" Version="0.3.0-preview" />
<PackageReference Include="Agentic.NET" />
paket add Agentic.NET --version 0.3.0-preview
#r "nuget: Agentic.NET, 0.3.0-preview"
#:package Agentic.NET@0.3.0-preview
#addin nuget:?package=Agentic.NET&version=0.3.0-preview&prerelease
#tool nuget:?package=Agentic.NET&version=0.3.0-preview&prerelease
Agentic.NET NuGet Package
Build production-ready AI agents in .NET — CLI coding assistants, web chat bots, or autonomous agents like an OpenClaw-style computer-use agent. Agentic.NET handles the agent runtime (memory, tool calling, streaming, middleware, identity) so you can focus on your UI and app integrations.
This README is kept short for NuGet users; full documentation and samples are available in the GitHub repository.
Install
dotnet add package Agentic.NET
Quick example
Agentic.NET is built on Microsoft.Extensions.AI (MEAI). You need a MEAI-compatible provider package alongside this one:
dotnet add package Microsoft.Extensions.AI.OpenAI
using Agentic.Builder;
using Microsoft.Extensions.AI;
using OpenAI;
var apiKey = Environment.GetEnvironmentVariable("OPENAI_API_KEY")
?? throw new InvalidOperationException("Set OPENAI_API_KEY first.");
var chatClient = new OpenAIClient(apiKey).AsChatClient("gpt-4o-mini");
var agent = new AgentBuilder()
.WithChatClient(chatClient)
.Build();
var reply = await agent.ReplyAsync("What's up?");
Console.WriteLine(reply);
// optional: add memory, middleware and tools the same way
Key Features
- Provider-agnostic: Works with any
IChatClientfrom Microsoft.Extensions.AI (OpenAI, Azure, Ollama, custom) - Streaming: Receive tokens incrementally via
StreamAsyncwithIAsyncEnumerable<StreamingToken> - Memory: SQLite, in-memory, or implement
IMemoryServicefor custom storage - Semantic memory: Bring any
IEmbeddingGenerator<string, Embedding<float>>for vector-based recall - Middleware: Pre/post-process conversation with
IAssistantMiddleware - Tools: Register executable functions the model can invoke
- Skills: Load capabilities from Agent Skills format
- Identity: Define agent personality with SOUL.md format
Note: this package is a preview release; expect breaking changes until a stable version is published.
For full documentation, examples and contribution instructions see https://github.com/oorosh/agentic.net.
| 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 is compatible. 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 is compatible. 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. |
-
net10.0
- Microsoft.Data.Sqlite (>= 8.0.11)
- Microsoft.Extensions.AI (>= 10.3.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.3.0)
- ModelContextProtocol.Core (>= 1.1.0)
- Npgsql (>= 8.0.5)
- OpenTelemetry.Api (>= 1.11.2)
- YamlDotNet (>= 16.2.1)
-
net8.0
- Microsoft.Data.Sqlite (>= 8.0.11)
- Microsoft.Extensions.AI (>= 10.3.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.3.0)
- ModelContextProtocol.Core (>= 1.1.0)
- Npgsql (>= 8.0.5)
- OpenTelemetry.Api (>= 1.11.2)
- YamlDotNet (>= 16.2.1)
-
net9.0
- Microsoft.Data.Sqlite (>= 8.0.11)
- Microsoft.Extensions.AI (>= 10.3.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.3.0)
- ModelContextProtocol.Core (>= 1.1.0)
- Npgsql (>= 8.0.5)
- OpenTelemetry.Api (>= 1.11.2)
- YamlDotNet (>= 16.2.1)
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 |
|---|---|---|
| 0.3.0-preview | 99 | 3/15/2026 |
| 0.2.1-preview | 75 | 3/6/2026 |
v0.2.0-preview: Microsoft.Extensions.AI Adoption
Breaking Changes:
- Full adoption of Microsoft.Extensions.AI (MEAI) 10.3.0
- IModelProvider removed; use AgentBuilder.WithChatClient(IChatClient) instead
- IEmbeddingProvider removed; use AgentBuilder.WithEmbeddingGenerator(IEmbeddingGenerator) instead
- WithOpenAi(), WithModelProvider(), WithEmbeddingProvider(), WithOpenAiEmbeddings(), WithSemanticMemory() removed from AgentBuilder
- IMemoryService and IVectorStore now use ReadOnlyMemory<float> instead of float[] for embeddings
- Built-in OpenAI provider (Providers/OpenAi/) removed; install Microsoft.Extensions.AI.OpenAI and pass IChatClient directly
Improvements:
- Core library is now zero-provider: accepts any IChatClient and IEmbeddingGenerator
- MEAI middleware pipeline fully composable around IChatClient (logging, caching, OTel, retry)
- IAssistantMiddleware still works for turn-level middleware (memory injection, filtering, audit)