AgencyDotNet.Harness
0.1.194-g9adaaec0b7
dotnet add package AgencyDotNet.Harness --version 0.1.194-g9adaaec0b7
NuGet\Install-Package AgencyDotNet.Harness -Version 0.1.194-g9adaaec0b7
<PackageReference Include="AgencyDotNet.Harness" Version="0.1.194-g9adaaec0b7" />
<PackageVersion Include="AgencyDotNet.Harness" Version="0.1.194-g9adaaec0b7" />
<PackageReference Include="AgencyDotNet.Harness" />
paket add AgencyDotNet.Harness --version 0.1.194-g9adaaec0b7
#r "nuget: AgencyDotNet.Harness, 0.1.194-g9adaaec0b7"
#:package AgencyDotNet.Harness@0.1.194-g9adaaec0b7
#addin nuget:?package=AgencyDotNet.Harness&version=0.1.194-g9adaaec0b7&prerelease
#tool nuget:?package=AgencyDotNet.Harness&version=0.1.194-g9adaaec0b7&prerelease
Agency.Harness
Core agentic loop for the Agency AI Toolkit — multi-turn LLM agents with tool calling, structured context, and memory.
Install
dotnet add package AgencyDotNet.Harness
Types
Agent— runs the agentic loop: builds system prompt fromContext, calls the LLM, handles tool invocations, and accumulatesChatSessionhistory.ChatSession— maintains conversation turns and token usage across the session.Context— composesQueryContext,TemporalContext,ToolContext,KnowledgeContext,MemoryContext, and more into a single system prompt.ToolRegistry— registers callable tools the agent can invoke during inference.StopConditions— configures when the agentic loop should halt.
Usage
services.AddScoped<Agent>();
services.AddScoped<ToolRegistry>(sp => new ToolRegistry()
.Register("search", sp.GetRequiredService<SearchTool>()));
// Run a single turn
var response = await agent.RunAsync(userMessage, cancellationToken);
Part of the Agency AI Toolkit — an open-source .NET agentic AI toolkit.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- AgencyDotNet.Llm.Claude (>= 0.1.194-g9adaaec0b7)
- AgencyDotNet.Llm.Common (>= 0.1.194-g9adaaec0b7)
- AgencyDotNet.Llm.OpenAI (>= 0.1.194-g9adaaec0b7)
- AgencyDotNet.RagFormatter (>= 0.1.194-g9adaaec0b7)
- AgencyDotNet.VectorStore.Common (>= 0.1.194-g9adaaec0b7)
- Anthropic (>= 12.31.0)
- Microsoft.Extensions.AI (>= 10.7.0)
- Microsoft.Extensions.AI.OpenAI (>= 10.7.0)
- Microsoft.Extensions.Configuration (>= 10.0.9)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection (>= 10.0.9)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Http (>= 10.0.9)
- Microsoft.Extensions.Logging (>= 10.0.9)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.9)
- Microsoft.Extensions.Options (>= 10.0.9)
- Microsoft.PowerShell.SDK (>= 7.6.3)
- ModelContextProtocol (>= 1.4.0)
- Npgsql (>= 10.0.3)
- OpenAI (>= 2.11.0)
- pgvector (>= 0.3.2)
- System.Security.Cryptography.Xml (>= 10.0.10)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on AgencyDotNet.Harness:
| Package | Downloads |
|---|---|
|
AgencyDotNet.Memory.Common
Common types, interfaces, and options for the Agency long-term memory system. |
|
|
AgencyDotNet.Memory.Retrieval
Retrieval engine for the Agency long-term memory system. Implements the gated vector search, composite ranking, and context injection for the agent hot path. |
|
|
AgencyDotNet.Memory.Distiller
Distiller background service for the Agency long-term memory system: episode extraction, inactivity timer, and agent tools. |
|
|
AgencyDotNet.Memory.Consolidator
Consolidator sub-agent background service for the Agency long-term memory system: merges, updates, and deletes memory records after distillation. |
|
|
AgencyDotNet.Harness.Console
Multi-turn interactive REPL chat harness built on Agency.Harness. Drop-in console host for testing agent prompts, tools, and stop conditions without writing a UI. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.194-g9adaaec0b7 | 85 | 9/1/2026 |
| 0.1.192-gd2744cd928 | 89 | 9/1/2026 |