Skip to main content
The Evaluations API attaches quality scores to traces and aggregates them into a per-trace verdict (keep / repair / replay / drop). It accepts scores from multiple sources — built-in deterministic checks, your @eval functions, LLM judges, and pushed-from-elsewhere scores from DeepEval / LangSmith / your CI pipeline. Together with the Compatibility Policies guide, this is how DecimalAI decides what’s training-data-grade.

When to use this API

Push scores from an external eval pipeline

Already running DeepEval or a homegrown harness? POST results to /traces/{id}/eval-scores and they show up in the same dashboard view as your built-ins, tagged by source.

Re-score a trace on demand

Call /traces/{id}/evaluate to re-run the configured eval policy (built-ins + LLM judges + your @eval functions) without re-running the agent itself.

Override a verdict manually

A human reviewer looked at the trace and disagrees with the auto-verdict. /traces/{id}/decision writes the override; the original auto-verdict is preserved for audit.

Bulk classify after a policy change

Tighten your eval policy and want every existing trace re-classified? /traces/batch-decision runs the new policy against existing scores without re-running anything.

Score sources (the source field)

Every score row carries a source so the dashboard can show it as a tagged badge:

Endpoints at a glance

Quick start