Eval runs
Push eval runs, read them with their histograms and cases, and compare two runs case by case.
An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Response Body
application/json
curl -X GET "https://example.com/v1/tasks/string/eval-runs"{ "runs": [ { "id": "string", "createdAt": "string", "model": "string", "split": "train", "judgeModel": "string", "mean": 0, "low": 0, "high": 0, "cases": 0, "metrics": { "property1": { "value": 0, "low": 0, "high": 0 }, "property2": { "value": 0, "low": 0, "high": 0 } }, "primaryMetric": "string", "benchmark": { "name": "string", "version": "string" } } ]}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/tasks/string/eval-runs" \ -H "Content-Type: application/json" \ -d '{ "id": "string", "createdAt": "2019-08-24T14:15:22Z", "model": "string", "cases": [ { "inputHash": "string", "score": 0 } ] }'{ "run": { "id": "string", "createdAt": "string", "model": "string", "split": "train", "judgeModel": "string", "mean": 0, "low": 0, "high": 0, "cases": 0, "metrics": { "property1": { "value": 0, "low": 0, "high": 0 }, "property2": { "value": 0, "low": 0, "high": 0 } }, "primaryMetric": "string", "benchmark": { "name": "string", "version": "string" } }}{ "run": { "id": "string", "createdAt": "string", "model": "string", "split": "train", "judgeModel": "string", "mean": 0, "low": 0, "high": 0, "cases": 0, "metrics": { "property1": { "value": 0, "low": 0, "high": 0 }, "property2": { "value": 0, "low": 0, "high": 0 } }, "primaryMetric": "string", "benchmark": { "name": "string", "version": "string" } }}{ "error": "string", "issues": [ { "message": "string", "path": [ "string" ] } ]}{ "error": "unauthorized"}{ "error": "forbidden"}{ "error": "not_found"}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/eval-runs/string"{ "run": { "id": "string", "createdAt": "string", "model": "string", "split": "train", "judgeModel": "string", "mean": 0, "low": 0, "high": 0, "cases": 0, "metrics": { "property1": { "value": 0, "low": 0, "high": 0 }, "property2": { "value": 0, "low": 0, "high": 0 } }, "primaryMetric": "string", "benchmark": { "name": "string", "version": "string" } }, "histograms": [ { "metric": "string", "bins": [ { "low": 0, "high": 0, "count": 0 } ] } ]}{ "error": "not_found"}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Query Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/eval-runs/string/cases"{ "total": 0, "offset": 0, "cases": [ { "inputHash": "string", "score": 0, "input": null, "output": null, "expected": null, "metrics": { "property1": 0, "property2": 0 } } ]}{ "error": "string", "issues": [ { "message": "string", "path": [ "string" ] } ]}{ "error": "not_found"}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Query Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/eval-runs/compare?before=string&after=string"{ "before": { "id": "string", "createdAt": "string", "model": "string", "split": "train", "judgeModel": "string", "mean": 0, "low": 0, "high": 0, "cases": 0, "metrics": { "property1": { "value": 0, "low": 0, "high": 0 }, "property2": { "value": 0, "low": 0, "high": 0 } }, "primaryMetric": "string", "benchmark": { "name": "string", "version": "string" } }, "after": { "id": "string", "createdAt": "string", "model": "string", "split": "train", "judgeModel": "string", "mean": 0, "low": 0, "high": 0, "cases": 0, "metrics": { "property1": { "value": 0, "low": 0, "high": 0 }, "property2": { "value": 0, "low": 0, "high": 0 } }, "primaryMetric": "string", "benchmark": { "name": "string", "version": "string" } }, "difference": 0, "low": 0, "high": 0, "verdict": "better", "fixed": 0, "broken": 0, "pairedCases": 0, "signTest": { "pValue": 0 }, "metrics": [ { "name": "string", "before": { "value": 0, "low": 0, "high": 0 }, "after": { "value": 0, "low": 0, "high": 0 }, "difference": 0, "low": 0, "high": 0, "paired": true, "verdict": "better", "improved": 0, "regressed": 0 } ], "cases": [ { "inputHash": "string", "before": 0, "after": 0, "metrics": { "property1": { "before": 0, "after": 0 }, "property2": { "before": 0, "after": 0 } } } ]}{ "error": "string", "issues": [ { "message": "string", "path": [ "string" ] } ]}{ "error": "not_found"}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Query Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/eval-runs/compare/case?before=string&after=string&inputHash=string"{ "case": { "inputHash": "string", "input": null, "expected": null, "before": { "score": 0, "output": null, "metrics": { "property1": 0, "property2": 0 } }, "after": { "score": 0, "output": null, "metrics": { "property1": 0, "property2": 0 } } }}{ "error": "string", "issues": [ { "message": "string", "path": [ "string" ] } ]}{ "error": "not_found"}