Skip to Content
Levain LabsLevain Labs

create_eval_case

Record an eval case: one piece of an agent's output to be judged. kind is your own name for what was decided or produced, lowercase and optionally dotted…

Record an eval case: one piece of an agent's output to be judged.

kind is your own name for what was decided or produced, lowercase and optionally dotted (plan.ask, brief). context is what the agent had in front of it and output what it produced, each as text or an object. When the case is a choice, pass the open options and the choice the agent took. rationale is the agent's stated reason. run_id links the run that produced the output; its session and agent version are recorded with the case. object_ref names what the case is about (a pull request, a thread), in the form used for signals. Repeating a key returns the case already recorded under it, unchanged. Judge the case with add_eval_verdict. Accepts a workspace agent's id or slug.

Parameters

NameTypeRequiredDescription
agent_idstringyes
kindstringyes
contextstringyes
outputstringno
optionsarrayno
choicestringno
rationalestringno
run_idstringno
session_idstringno
object_refstringno
keystringno

On this page