AgentEval.Cli 0.23.0-beta

This is a prerelease version of AgentEval.Cli.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global AgentEval.Cli --version 0.23.0-beta
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local AgentEval.Cli --version 0.23.0-beta
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=AgentEval.Cli&version=0.23.0-beta&prerelease
                    
nuke :add-package AgentEval.Cli --version 0.23.0-beta
                    

AgentEval CLI

AgentEval CLI

NuGet License: MIT Built on Microsoft Agent Framework .NET 8.0 | 10.0

Command-line interface for AgentEval — the comprehensive .NET evaluation toolkit for AI agents. Evaluate any OpenAI-compatible agent, run compliance and security benchmark suites, manage the canonical .agenteval/ output store, and serve the Mission Control web portal — all from the terminal or your CI/CD pipeline.

Installation

dotnet tool install --global AgentEval.Cli --prerelease

Compatibility

AgentEval.Cli ships in lockstep with the AgentEval library — both are released together at the same version from one pipeline. The pinned Microsoft Agent Framework / Microsoft.Extensions.AI versions for each release are recorded in the CHANGELOG.

The tool multi-targets net8.0 and net10.0; the dotnet-tool installer picks the highest compatible runtime. The mc serve portal requires .NET 10.

Quick Start

Scaffold a test dataset

agenteval init
agenteval init -o my-tests.yaml
agenteval init --format json

Run evaluations

# Against Azure OpenAI
agenteval eval --azure --endpoint https://myresource.openai.azure.com/ --deployment-name gpt-4o --dataset agenteval.yaml

# Against OpenAI directly
agenteval eval --endpoint https://api.openai.com/v1 --model gpt-4o --dataset agenteval.yaml

# Against a local Ollama model
agenteval eval --endpoint http://localhost:11434/v1 --model llama3 --dataset agenteval.yaml

Stochastic evaluation (multi-run)

agenteval eval --azure --endpoint https://myresource.openai.azure.com/ --deployment-name gpt-4o --dataset agenteval.yaml --runs 5 --success-threshold 0.9

Run benchmark families

# List every registered family with its presets and cost tiers
agenteval bench --list

# Compliance: GDPR / EU AI Act (audit-chain evidence written to .agenteval/)
agenteval bench gdpr --subject my-agent --preset standard --response-file answer.txt
agenteval bench eu-ai-act --subject my-agent --input "..." --response-file answer.txt

# Security: OWASP LLM Top 10 / MITRE ATLAS / NIST AI RMF
agenteval bench owasp --subject my-agent
agenteval bench mitre --subject my-agent
agenteval bench nist  --subject my-agent

# Quality & performance
agenteval bench agentic --subject my-agent
agenteval bench perf latency --subject my-agent --azure-from-env
agenteval bench longmemeval --subject my-agent --preset subset
agenteval bench memory --subject my-agent --preset quick

Red team security scanning

# Run all attack types
agenteval redteam --azure --endpoint https://myresource.openai.azure.com/ --deployment-name gpt-4o --intensity moderate

# Run specific attacks, export SARIF for CI
agenteval redteam --azure --endpoint https://myresource.openai.azure.com/ --deployment-name gpt-4o --attacks PromptInjection,Jailbreak --format sarif

Manage the workspace

agenteval init-workspace --name "My Solution"   # bootstrap .agenteval/
agenteval doctor                                # validate structure + content hashes
agenteval migrate                               # dry-run legacy → canonical layout
agenteval migrate --apply                       # apply the migration

Render reports (no LLM cost)

# PDF from existing compliance evidence
agenteval compliance render --regulation gdpr --subject my-agent

# Markdown from existing agentic benchmark results
agenteval render --benchmark agentic --subject my-agent

Mission Control web portal (requires .NET 10)

agenteval mc serve --workspace .            # GraphQL + REST + SPA on one port (default 5000)
agenteval mc doctor                         # verify the portal bundle is intact

List metrics, attacks, exporters, and datasets

agenteval list
agenteval list --type metrics
agenteval list --type attacks

Authentication

The eval and redteam commands support two endpoint modes: Azure OpenAI (--azure) and OpenAI-compatible (--endpoint).

Azure OpenAI (--azure)

The --azure flag uses AzureOpenAIClient. Both --endpoint and --deployment-name are required:

Setting Flag Env var fallback
Endpoint --endpoint (required) AZURE_OPENAI_ENDPOINT
Deployment --deployment-name (required) AZURE_OPENAI_DEPLOYMENT
API Key --api-key AZURE_OPENAI_API_KEY
# Key from env var
export AZURE_OPENAI_API_KEY=sk-...
agenteval eval --azure --endpoint https://myresource.openai.azure.com/ --deployment-name gpt-4o --dataset agenteval.yaml

Note: --deployment-name is the name you gave your model deployment in Azure AI Foundry, not the underlying model name.

OpenAI-compatible (--endpoint)

For OpenAI, Ollama, Groq, vLLM, LM Studio, Together.ai, or any OpenAI-compatible API:

# OpenAI (set OPENAI_API_KEY or use --api-key)
agenteval eval --endpoint https://api.openai.com/v1 --model gpt-4o --dataset agenteval.yaml --api-key sk-...

# Local Ollama (no key needed)
agenteval eval --endpoint http://localhost:11434/v1 --model llama3 --dataset agenteval.yaml

Commands

Command Description
init Scaffold a sample evaluation dataset file
eval Run evaluations against an AI agent endpoint
list List available metrics, attacks, exporters, and datasets
redteam Run red team security scans
bench Run a benchmark family (gdpr, eu-ai-act, agentic, owasp, mitre, nist, longmemeval, memory, perf)
init-workspace Initialize the canonical .agenteval/ workspace
doctor Validate the .agenteval/ workspace structure and content hashes
migrate Migrate legacy output paths to the canonical .agenteval/ layout
compliance render Render a PDF report from existing compliance evidence (no LLM cost)
render Render a Markdown report from existing benchmark results (no LLM cost)
mc serve Start the Mission Control web portal (requires .NET 10)

Requirements

  • .NET 8.0 or .NET 10.0 (mc serve requires .NET 10.0)
  • An AI agent endpoint (Azure OpenAI, OpenAI, Ollama, or any OpenAI-compatible API) for eval / redteam / LLM-graded benchmarks
  • Built on Microsoft Agent Framework (MAF) and Microsoft.Extensions.AI

Documentation

Contributing

Contributions are welcome! Please open an issue or pull request on the main repository.

License

MIT License. See LICENSE for details.

Product 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 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.

This package has no dependencies.

Version Downloads Last Updated
0.25.0-beta 45 8/17/2026
0.24.0-beta 69 8/17/2026
0.23.0-beta 61 8/16/2026
0.22.0-beta 50 8/15/2026
0.21.0-beta 54 8/14/2026
0.20.0-beta 70 8/11/2026
0.19.0-beta 60 8/11/2026
0.18.0-beta 61 8/7/2026
0.17.0-beta 65 7/19/2026
0.16.0-beta 75 7/13/2026
0.15.0-beta 80 7/8/2026
0.14.0-beta 74 7/6/2026
0.13.2-beta 79 6/29/2026
0.13.1-beta 69 6/29/2026
0.13.0-beta 92 6/23/2026
0.12.2-beta 107 6/18/2026
0.12.1-beta 86 6/18/2026
0.12.0-beta 85 6/14/2026
0.2.1-alpha 141 3/5/2026
0.2.0-alpha 106 3/5/2026
Loading failed

Install: dotnet tool install --global AgentEval.Cli --prerelease. Per-version release notes: https://github.com/AgentEvalHQ/AgentEval/blob/main/CHANGELOG.md