AgentEval 0.1.0-alpha
This is a prerelease version of AgentEval.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AgentEval --version 0.1.0-alpha
NuGet\Install-Package AgentEval -Version 0.1.0-alpha
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="AgentEval" Version="0.1.0-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AgentEval" Version="0.1.0-alpha" />
<PackageReference Include="AgentEval" />
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 AgentEval --version 0.1.0-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AgentEval, 0.1.0-alpha"
#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 AgentEval@0.1.0-alpha
#: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=AgentEval&version=0.1.0-alpha&prerelease
#tool nuget:?package=AgentEval&version=0.1.0-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AgentEval
The first .NET-native AI agent testing, evaluation, and benchmarking framework
Features
- 🎯 Tool Tracking - Monitor tool/function calls with timing and arguments
- 📊 Performance Metrics - TTFT, latency, tokens, cost estimation
- ✅ Fluent Assertions - Expressive test assertions for tools and performance
- 🔬 RAG Metrics - Faithfulness, relevance, context precision
- 📈 Benchmarking - Performance and agentic benchmarks
- 🔌 Extensible - Adapter pattern for multiple agent frameworks
- 📋 Trace-First Failure Reporting - Structured failure reports with tool timelines
- 🔧 Testing Infrastructure - FakeChatClient for mocking LLM responses
Quick Start
using AgentEval;
using AgentEval.MAF;
// Create test harness
var harness = new MAFTestHarness(evaluatorClient);
// Run test with tool tracking
var result = await harness.RunTestAsync(agent, new TestCase
{
Name = "Feature Planning Test",
Input = "Plan a user authentication feature",
EvaluationCriteria = ["Should include security considerations"]
});
// Assert tool usage
result.ToolUsage!
.Should()
.HaveCalledTool("SecurityTool")
.BeforeTool("FeatureTool")
.WithoutError()
.And()
.HaveNoErrors();
// Assert performance
result.Performance!
.Should()
.HaveTotalDurationUnder(TimeSpan.FromSeconds(10))
.HaveEstimatedCostUnder(0.10m);
// Check failure details
if (!result.Passed && result.Failure != null)
{
Console.WriteLine($"Failure: {result.Failure.Summary}");
Console.WriteLine($"Tool Timeline: {result.Timeline?.TotalToolCalls} calls");
}
Test Coverage
- 210 unit tests covering all core functionality
- Tests for all assertions, metrics, models, and adapters
- All tests passing ✅
Installation
dotnet add package AgentEval
Documentation
See the AgentEval Design Document for full documentation.
License
MIT License - See LICENSE file for details.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Azure.AI.OpenAI (>= 2.5.0-beta.1)
- Microsoft.Agents.AI (>= 1.0.0-preview.251110.2)
- Microsoft.Extensions.AI (>= 10.0.0)
- Microsoft.Extensions.AI.Evaluation.Quality (>= 9.5.0)
- System.Numerics.Tensors (>= 10.0.0)
-
net8.0
- Azure.AI.OpenAI (>= 2.5.0-beta.1)
- Microsoft.Agents.AI (>= 1.0.0-preview.251110.2)
- Microsoft.Extensions.AI (>= 10.0.0)
- Microsoft.Extensions.AI.Evaluation.Quality (>= 9.5.0)
- System.Numerics.Tensors (>= 10.0.0)
-
net9.0
- Azure.AI.OpenAI (>= 2.5.0-beta.1)
- Microsoft.Agents.AI (>= 1.0.0-preview.251110.2)
- Microsoft.Extensions.AI (>= 10.0.0)
- Microsoft.Extensions.AI.Evaluation.Quality (>= 9.5.0)
- System.Numerics.Tensors (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on AgentEval:
| Repository | Stars |
|---|---|
|
AgentEvalHQ/AgentEval
AgentEval is the comprehensive .NET toolkit for AI agent evaluation—tool usage validation, RAG quality metrics, stochastic evaluation, and model comparison—built first for Microsoft Agent Framework (MAF) and Microsoft.Extensions.AI. What RAGAS, PromptFoo and DeepEval do for Python, AgentEval does for .NET
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.10.1-beta | 75 | 5/18/2026 |
| 0.10.0-beta | 76 | 5/17/2026 |
| 0.9.0-beta | 50 | 5/17/2026 |
| 0.8.1-beta | 522 | 4/29/2026 |
| 0.8.0-beta | 63 | 4/28/2026 |
| 0.6.0-beta | 1,100 | 3/5/2026 |
| 0.5.4-beta | 100 | 3/3/2026 |
| 0.5.3-beta | 125 | 3/1/2026 |
| 0.5.2-beta | 96 | 2/28/2026 |
| 0.5.1-beta | 87 | 2/28/2026 |
| 0.4.0-beta | 103 | 2/22/2026 |
| 0.3.0-beta | 143 | 1/25/2026 |
| 0.2.1-beta | 83 | 1/24/2026 |
| 0.2.0-beta | 80 | 1/18/2026 |
| 0.1.1-alpha | 92 | 1/3/2026 |
| 0.1.0-alpha | 84 | 1/3/2026 |