Overview
VevalTestSdk is a test double for IVevalSdk. It replays a recorded trace so your agent code runs with mocked LLM responses — deterministic, fast, and free.
Unlike calling VevalSdk directly with a trace, VevalTestSdk guarantees no live LLM fallthrough. If a step name doesn’t match the recorded trace, it throws immediately.
Setup
VevalTestSdk still reports traces and scenario results to the dashboard, so runs count in your history.
In a test project
Strict mock mode
If your agent calls TrackStepAsync with a step name that isn’t in the recorded trace, VevalTestSdk throws:
This catches regressions where code changes add new LLM calls that weren’t in the original trace.
ReplayAsync directly
For lower-level control, use ReplayAsync with explicit assertions:
LastStatus / LastError
After RunAsync, inspect the outcome without catching exceptions: