Expectations
Expectations define how an eval case passes or fails.
Available categories
- Deterministic expectations
- LLM-as-judge expectations
- Custom expectations
- Dataset evals
- Conversation evals
Tool call assertions such as expectToolCalled, expectToolCalledWith, and expectToolNotCalled are documented with deterministic expectations because they evaluate the recorded execution trace without another model call.
More expectation types can be added over time.
For method signatures and return values, see the API reference.