HPD-Agent.AspNetCore.Evaluations
0.9.5
dotnet add package HPD-Agent.AspNetCore.Evaluations --version 0.9.5
NuGet\Install-Package HPD-Agent.AspNetCore.Evaluations -Version 0.9.5
<PackageReference Include="HPD-Agent.AspNetCore.Evaluations" Version="0.9.5" />
<PackageVersion Include="HPD-Agent.AspNetCore.Evaluations" Version="0.9.5" />
<PackageReference Include="HPD-Agent.AspNetCore.Evaluations" />
paket add HPD-Agent.AspNetCore.Evaluations --version 0.9.5
#r "nuget: HPD-Agent.AspNetCore.Evaluations, 0.9.5"
#:package HPD-Agent.AspNetCore.Evaluations@0.9.5
#addin nuget:?package=HPD-Agent.AspNetCore.Evaluations&version=0.9.5
#tool nuget:?package=HPD-Agent.AspNetCore.Evaluations&version=0.9.5
HPD-Agent.AspNetCore.Evaluations
Optional ASP.NET Core endpoints for querying HPD evaluation scores, analytics, runs, datasets, and red-team findings.
The package targets net8.0, net9.0, and net10.0.
Install
dotnet add package HPD-Agent.AspNetCore.Evaluations
Register
using HPD.Agent.AspNetCore.Evaluations;
using HPD.Agent.Evaluations.Storage;
builder.Services.AddSingleton<IScoreStore, MyDurableScoreStore>();
builder.Services.AddSingleton<IDatasetStore, MyDurableDatasetStore>();
builder.Services.AddHPDAgentEvaluations();
var app = builder.Build();
app.MapHPDAgentEvaluationApi();
app.Run();
The default route prefix is /evals. Pass a different prefix when needed:
app.MapHPDAgentEvaluationApi("/internal/evaluations");
The package does not define authentication or authorization. Apply the host application's normal API policy to the evaluation route group.
Store Requirements
The catalog and red-team metadata routes work without persistence:
GET /evals/evaluators/catalogGET /evals/red-team/pluginsGET /evals/red-team/strategies
Score, analytics, run, and red-team result routes return 503 when no
IScoreStore is registered. Dataset registry routes return 503 when no
IDatasetStore is registered.
InMemoryScoreStore and InMemoryDatasetStore are available for development,
but both lose data when the process exits.
Route Groups
MapHPDAgentEvaluationApi registers these route families:
| Area | Routes |
|---|---|
| Scores | /scores, /scores/by-thread, /scores/by-version |
| Analytics | /analytics/evaluators, /analytics/trend/{evaluatorName}, /analytics/pass-rate/{evaluatorName}, /analytics/failure-rate/{evaluatorName} |
| Comparisons | /analytics/agent-comparison/{evaluatorName}, /analytics/thread-comparison |
| Runtime quality | /analytics/tool-usage, /analytics/risk-autonomy, /analytics/cost, /analytics/safety |
| Runs | /runs, /runs/executions, /runs/scenarios, /runs/iterations |
| Datasets | /datasets, /datasets/{datasetId}/versions, /datasets/{datasetId}/active-cases, /datasets/{datasetId}/cases/{caseId}/history, /datasets/{datasetId}/diff |
| Red team | /red-team/plugins, /red-team/strategies, /analytics/red-team, /analytics/red-team/by-plugin, /analytics/red-team/by-strategy, /analytics/red-team/findings |
GET /evals/evaluators/catalog is backed by the core evaluator registry and
includes stable IDs, default policy, judge requirements, metric names, and
required evaluation contexts.
Unexpected storage failures return 500 without exposing raw exception text.
Missing store registrations continue to return 503. Cancellation is propagated
instead of being converted into a client error.
HTTP Dataset Inputs
The HTTP registry intentionally accepts string-input datasets only. This keeps
the endpoint AOT-compatible and avoids reflection over arbitrary consumer input
types. Use the HPD-Agent.Evaluations APIs for typed, in-process datasets.
Compatibility
Starting with 1.0.0, documented endpoint paths, DTO names, and response
contracts follow semantic versioning. Breaking changes require a new major
version and a migration guide.
| 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
- HPD-Agent.AspNetCore (>= 0.9.5)
- HPD-Agent.Evaluations (>= 0.9.5)
-
net8.0
- HPD-Agent.AspNetCore (>= 0.9.5)
- HPD-Agent.Evaluations (>= 0.9.5)
-
net9.0
- HPD-Agent.AspNetCore (>= 0.9.5)
- HPD-Agent.Evaluations (>= 0.9.5)
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.9.5 | 66 | 11/10/2026 |