v1

latestOpenAPI 3.0.12026-07-17144.2 KB
Score

Add a score to the database, upserts on id

post/api/public/scores

Request body

idstring nullable
traceIdstring nullable
sessionIdstring nullable
observationIdstring nullable
datasetRunIdstring nullable
namestring required

The name of the score. Always overrides "output" for correction scores.

commentstring nullable
{"stackTrail":"components:schemas:CreateScoreRequest:properties:metadata","oasType":"schema","type":"unknown","nullable":true}
dataType'NUMERIC' | 'CATEGORICAL' | 'BOOLEAN' | 'CORRECTION'
configIdstring nullable

Reference a score config on a score. When set, the score name must equal the config name and scores must comply with the config's range and data type. For categorical scores, the value must map to a config category. Numeric scores might be constrained by the score config's max and min values

source'API' | 'ANNOTATION'

Source values accepted when creating a score via the public API. EVAL is reserved for internal evaluator outputs and is intentionally not exposed here.

All 1 operations