Your first eval
Eval lifecycle
1
Define cases
Each case specifies an agent and input message. Suite-level assertions and budgets verify the result.
2
Schedule execution
The scheduler runs cases sequentially or in parallel, respecting concurrency
limits.
3
Run agents
Each case runs through the same runner path your application uses.
4
Assert results
Assertions verify the result — text content, state, tool usage, cost,
latency, etc.
5
Check budgets
Budget limits gate individual case costs and the total suite cost.
6
Generate report
Pass/fail results, assertion details, and metrics are collected into a
report.
Eval case types
- Happy path
- Failure path
- Tool usage
- Budget-constrained
Verify correct behavior under normal conditions.
Assertions
Assertions are suite-level callables. Import the built-ins fromafk.evals, or implement the EvalAssertion protocol.
Suite configuration
CI integration
Run evals in your CI pipeline to gate releases:Release gating
Gate releases on eval pass rate:Next steps
Security Model
Security boundaries and production hardening.
Building with AI
Production playbook with anti-patterns.