Documentation Index
Fetch the complete documentation index at: https://docs.veval.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
A snapshot records the step structure of a known-good agent run — which steps ran, in what order.CompareSnapshotAsync compares a new run against that baseline and reports any differences: added steps, removed steps, or reordering.
Two use cases:
- Production monitoring — detect silent regressions in live traffic
- CI testing — catch structural changes before they reach production
How it works
- Pick a known-good production trace as your golden baseline.
- Call
LoadSnapshotAsync(traceId)to load its step structure. - After each run, call
CompareSnapshotAsync(name, snapshot, ctx). - If the step shape changed,
SnapshotDiff.HasChangesis true.
Production monitoring
Compare every live run against a pinned baseline:CI / integration tests
UseVevalTestSdk to run at zero LLM cost:
SnapshotDiff
| Member | Description |
|---|---|
HasChanges | true if any difference was detected |
AddedSteps | Step names present in actual but not in the snapshot |
RemovedSteps | Step names present in snapshot but missing from actual |
OrderChanges | Steps that ran in a different position |
Choosing a golden trace
Pick a trace that represents the expected “happy path” structure:- All expected steps completed successfully
- No error steps
- Representative of typical production behavior
Update your golden trace whenever you intentionally change your agent’s step structure. Leaving a stale baseline will cause false positives.