Send eval results
Create a run on an existing eval from results scored outside Statsig. Each result carries its input, output, optional expected value and categories, and one…
Create a run on an existing eval from results scored outside Statsig. Each result carries its input, output, optional expected value and categories, and one or more named scores from 0 to 1.
https://statsigapi.net/console/v1/evals/send_results/{name}Authorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
namestringrequiredname
Body
application/jsonnamestringThe name of the eval run
My Eval Runnullableresultsobject[]requiredResults with input, expected, output and score fields, up to 10,000 per request. Statsig stores latencyMs, inputTokens and outputTokens without scoring them, and List Eval Run Result Rows returns them.
[{"input":"Foo","expected":"Hi Foo","output":"Hi Foo","category":["greeting"],"scores":{"correctness":{"score":1,"metadata":{"justification":"friendly"}},"tone":{"score":1}}}]Show child attributes
inputstringrequiredexpectedstringoutputstringrequiredcategoryoneOfstring[]stringrowIDstringStable id of the case this result belongs to, so runs line up row by row. With dataset, required and one of its row ids. Otherwise defaults to the position in results.
traceIDstringTrace that produced the output, when known.
spanIDstringlatencyMsnumberMilliseconds the output took to generate.
min: 0inputTokensnumberInput tokens used to generate the output. When you send only one of inputTokens and outputTokens, Statsig stores the other as 0.
min: 0outputTokensnumberTokens in the output.
min: 0scoresobjectrequireddatasetstringName or id of the eval dataset the results were produced from. Runs on the same dataset are compared row by row.
dataset1min length: 1parametersobjectParameters
{"parameter_name":"parameter_value"}summaryScoresobjectSummary scores
{"summary_score_name":100}primaryGraderstringScore name shown as the primary result. Defaults to the first score.
criticalGradersstring[]Score names treated as release gates: a mean of 0 fails the whole run.
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idstringrequirednamestringrequiredevalIDstringrequiredstatusstringrequiredrunning until the run finishes, then completed, or failed when the run recorded an error.
runningcompletedfailedcreatedTimenumberrequiredformat: doublefinishTimenumberrequiredformat: doublenullablerunTimenumberrequiredformat: doublenullabledatasetIDstringrequiredDataset the run scored. Null for runs posted from code through send_results.
nullabledatasetItemCountnumberrequiredformat: doublegraderIDsstring[]requiredprimaryEvalGraderIDstringrequirednullableparametersobjectrequirednullableerrorReasonstringrequirednullablestatusintegerrequired400messagestringrequiredstatusintegerrequired403messagestringrequiredstatusintegerrequired404messagestringrequiredWas this helpful?
For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.