Skip to main content
The eval endpoints back the /evals and /evals/benchmarks console routes. They are also the integration point for CI pipelines that run agent-safety benchmarks (badcomputeruse, custom suites) and want their grades surfaced in the org’s scorecard.

Endpoints

All endpoints live under /api/v1/evals and are scoped to the caller’s active organization.

Submit an eval run

Returns the persisted EvalRunPublic row including id, created_at, and organization_id.

List eval runs

Newest-first, paginated, optionally filtered by agent / benchmark / policy.

Latest run

Returns the most recent eval run for the given benchmark (default badcomputeruse). The console scorecard reads this endpoint.

Get a run

Compare two runs

Used by the console regression view to surface “new failures” against the previous baseline.

Generate adversarial scenarios

Either agent_id (pulls action definitions from the platform’s action registry) or inline tool_definitions is required. The generator runs two passes:
  1. Templateagent-sentinel-gym emits structural attacks: missing prerequisites, stale evidence, denied actions, budget blowouts.
  2. Gemini (when use_llm: true) — produces semantic adversaries across prompt_injection, policy_evasion, social_engineering, cost_abuse, data_exfiltration.
Returns 501 Not Implemented if the platform was deployed without agent-sentinel-gym. Returns 404 if agent_id has no registered action definitions.

Published benchmark report

The phase-7 reference benchmark is rendered in the console at /evals/benchmarks. It runs five end-to-end scenarios (PII, budget, ungrounded refund, missing evidence, disallowed content) against gemini-2.5-flash with guardrails on/off. Headline result: The console renders the same markdown at /evals/benchmarks.

See also