seq!
Validates that execution spans match a sequence pattern. This is a top-level validator that checks the order of tool calls.seq! validator checks that the specified spans appear in order in the execution trace.
Basic Sequence
Wildcard Patterns
Use wildcards to match flexible sequences:Wildcard examples
Wildcard examples
Span Validation Within Sequence
Validate span inputs, outputs, and timing within the sequence:any! Pattern
Match any span meeting certain criteria:any! examples
any! examples
Nested parallel! in Sequences
Check for parallel execution within a sequence:parallel!
Validates that specified spans executed in parallel (overlapping time ranges). This can be used as a top-level validator or nested withinseq!.
Basic Parallel Check
With Tolerance
Network latency and scheduling can cause slight timing variations. Use tolerance to account for this:With Span Validation
Validate inputs/outputs of parallel spans:Complete Examples
Basic Flow Validation
Comprehensive Flow Validation
Parallel Tool Execution
Mixed Sequential and Parallel
How Parallel Detection Works
Two spans are considered parallel if their execution times overlap:Tips
Flow validators require execution tracing to be enabled. Tracing is automatically enabled when running evals.