Skip to main content
@agentx/eval is a zero-dependency TypeScript client for the CI slice of offline evaluation: open a run against an existing dataset, submit your agent’s outputs (the engine judge-scores each batch synchronously), finalize, and gate the build. Node 18+, ESM and CJS, nothing else - it uses the built-in fetch. Be clear about what it is: the CI surface only. Dataset curation, grading configs, the review queue, analysis reports, and everything else on these pages live in the Python SDK and the dashboard. Use this package when the repo being gated is TypeScript and pulling in a Python step just for the gate is the only reason it would exist.
The gate checks are the same ones the Python gate runs - failUnder (absolute floor) and noRegression (tolerance default 0.5, needs run history) - and recorded gates land in the same dashboard CI Gates history. Two more pieces round out the CI story. Pairwise comparison against a previous run:
And resume after an interrupted job - submittedKeys() returns what the engine already has, so a re-run only submits the remainder:
submit() auto-chunks at 10 results per batch and retries each batch once; a second failure throws an AgentXEvalError with the HTTP status rather than finishing silently. The package README in the AgentX-Trace-Eval repo (packages/agentx-eval) is the full reference.