Expand description
Assertions: the Assertion trait, the registry of assertion types and the
built-in deterministic types.
An assertion type is a factory turning an AssertionSpec (one assert
entry, with {{var}} references already rendered) into an Assertion.
Evaluation is asynchronous so types that call models or run workflows (an
LLM judge) fit the same interface as the string checks.
Every type can be negated with a not- prefix (not-contains,
not-trajectory:tool-used): the pass flag flips and the score becomes
1 - score.
Structs§
- Assertion
Context - What an assertion sees: the test case and the run it produced.
- Assertion
Registry - Assertion types by name.
- Assertion
Result - The result of one assertion, as reported.
- Outcome
- The verdict of one assertion.
- Prepared
Assertion - An assertion ready to evaluate, with its reporting settings.
Traits§
- Assertion
- A check of one aspect of a run.
Functions§
- only_
keys - Reject
configkeys other thanallowed(typos would otherwise be ignored). - transform_
of - The parsed
transformpath of a spec.
Type Aliases§
- Assertion
Factory - Builds an assertion from its spec (the
not-prefix already removed).