Skip to main content
Score names are defined on the project, on the dashboard’s Scores page. There you set the name and its type (boolean, number or string). A trace holds one value per name. To have a model score traces for you, add a judge. Your app can write a value too, with POST /v1/scores:
string
required
The traceKey you wrote the trace with.
string
required
A score name defined on the project.
number | string | boolean
required
The value. It must match the type the name was defined with.
Writing the same name on the same trace again replaces the value. volume, cost and latency (in any case) are reserved for the built-in trace metrics; a score with one of those names is rejected with 400. A score can arrive before its trace: it is stored under the traceKey and shows up once the trace is written. A score whose trace is never written is kept but never shown, so check the traceKey if a score is missing.

Delete a score

Answers 202 {"id": "run_123:decide"} and removes that name from the trace, usually within a second. Deleting a score that doesn’t exist does nothing.