AgencyDotNet.Harness 0.1.194-g9adaaec0b7

This is a prerelease version of AgencyDotNet.Harness.
dotnet add package AgencyDotNet.Harness --version 0.1.194-g9adaaec0b7
                    
NuGet\Install-Package AgencyDotNet.Harness -Version 0.1.194-g9adaaec0b7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AgencyDotNet.Harness" Version="0.1.194-g9adaaec0b7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AgencyDotNet.Harness" Version="0.1.194-g9adaaec0b7" />
                    
Directory.Packages.props
<PackageReference Include="AgencyDotNet.Harness" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AgencyDotNet.Harness --version 0.1.194-g9adaaec0b7
                    
#r "nuget: AgencyDotNet.Harness, 0.1.194-g9adaaec0b7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AgencyDotNet.Harness@0.1.194-g9adaaec0b7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AgencyDotNet.Harness&version=0.1.194-g9adaaec0b7&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=AgencyDotNet.Harness&version=0.1.194-g9adaaec0b7&prerelease
                    
Install as a Cake Tool

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 from Context, calls the LLM, handles tool invocations, and accumulates ChatSession history.
  • ChatSession — maintains conversation turns and token usage across the session.
  • Context — composes QueryContext, 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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