Skip to Content
Levain LabsLevain Labs

add_eval_verdict

Add a verdict to an eval case. value is shaped by type. categorical: ``{"choice": ...}``, one of the case's options. binary: ``{"acceptable": true}``, or…

Add a verdict to an eval case.

value is shaped by type. categorical: {"choice": ...}, one of the case's options. binary: {"acceptable": true}, or false with an optional "severity" of low, medium or high. graded: {"score": ...} between 0 and 1, with an optional "rubric". preference: {"alternative": ..., "preferred": ...}, another output for the same context and which was better, "output" or "alternative". edit: {"output": ...}, the corrected output.

source says who judged. Use "person" only for a verdict a person gave, with their own words in note: it becomes the case's gold verdict at once and overrides the ones before it. "outcome" (read from what happened afterwards) and "observer" (proposed by a review of the run) wait as candidates, with the evidence in note and a confidence between 0 and 1, until accept_eval_verdict.

Parameters

NameTypeRequiredDescription
agent_idstringyes
case_idstringyes
typestringyes
valueobjectyes
sourcestringyes
confidencenumberno
notestringno

On this page