curl "https://api.60db.ai/agents/AGENT_ID/metrics/compare?source=production&version_a=6&version_b=7" \
-H "Authorization: Bearer your-api-key"
Agent Reliability
Compare Agent Versions
Compare two versions of an agent for one source
GET
/
agents
/
{agentId}
/
metrics
/
compare
curl "https://api.60db.ai/agents/AGENT_ID/metrics/compare?source=production&version_a=6&version_b=7" \
-H "Authorization: Bearer your-api-key"
Compare two versions. Each row has the rate for each version, the change, and
significant. significant is true, false or null. null means not enough data: a change counts only when each version has at least 30 samples.
Request
Headers
Path
Query
Response
200 OK.{
"version_a": 6, "version_b": 7, "source": "simulation",
"evals": [{ "name": "task_success", "a": 0.8, "b": 0.9, "delta": 0.1, "significant": null }],
"latency": {}
}
Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | VALIDATION_ERROR | A query value is missing or wrong |
| 403 | POLICY_DENY | Your role cannot read agents, or the API key lacks the agents scope |
| 404 | AGENT_NOT_FOUND | No agent with this ID in your workspace |
Example
curl "https://api.60db.ai/agents/AGENT_ID/metrics/compare?source=production&version_a=6&version_b=7" \
-H "Authorization: Bearer your-api-key"