What is a scenario?
A scenario is a named set of test cases for your agent. Each run posts pass/fail results to the dashboard so you can track quality over time. Scenarios have two item types:RunScenarioAsync
Synthetic items
Use these for new inputs you want to test with a live LLM.Trace-backed items
Use these to replay a recorded production trace with mocked LLM responses — no API cost.The trace must have recorded steps. If it has none, Veval throws rather than silently calling the live LLM.
Per-item assertions
EachScenarioItem can carry its own assertions on top of the scenario-level ones:
Fetching items from the dashboard
Ifitems is null, Veval fetches items for the scenario from the API automatically. This lets you manage test cases in the dashboard without redeploying code.