Examples / Specifications
Specifications
This chapter covers behavior-driven development (BDD) with Tactus specifications - embedded tests that validate your AI workflows.
Examples in This Chapter
Complete Specs
A comprehensive demonstration of BDD testing features in Tactus. This example shows:
- Multiple test scenarios in a single specification
- Testing state changes and validations
- Assertions on procedure inputs, outputs, and state variables
- Testing agent interactions within procedures
- Numeric comparisons and boolean assertions
- Testing iteration counts and loop behavior
Has Specs · Requires API Keys
Passing Specs
Demonstrates passing specifications that validate successful procedure execution. This example shows:
- Basic Given/When/Then structure
- Testing procedure completion
- Output existence and value assertions
- State variable validation
- Success criteria testing
Has Specs · Requires API Keys
Fuzzy Matching
Focused demonstration of fuzzy matching for AI output validation. This example shows:
- High-threshold fuzzy matching (0.95) for near-exact matches
- Medium-threshold fuzzy matching (0.45) for semantic similarity
- Default threshold behavior when not specified
- Using fuzzy matching to handle natural language variation
Has Specs · Requires API Keys
Want to contribute?
The examples repository is open source. Add your own examples or improve existing ones.