A score is one named value on a trace: whether the run was right, by the measure you care about.
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:
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.