# Specifications Examples

> This chapter covers behavior-driven development (BDD) with Tactus specifications - embedded tests that validate your AI workflows.

Canonical: https://tactus.anth.us/examples/specifications/

::band{columns="document-hero wide"}

[Examples](/examples/) / Specifications

# Specifications

This chapter covers behavior-driven development (BDD) with Tactus specifications - embedded tests that validate your AI workflows.

::band{tone="muted"}

## Examples in This Chapter

### [Complete Specs](/examples/specifications/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](/examples/specifications/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](/examples/specifications/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*

::band{columns="neighbors"}

- [*← Previous Chapter* **Standard Library**](/examples/standard-library/)
- [*Next Chapter →* **Evaluations**](/examples/evaluations/)

::band{columns="cta"}

## Want to contribute?

The examples repository is open source. Add your own examples or improve existing ones.

::button{href="https://github.com/AnthusAI/Tactus-examples" label="View on GitHub" size="lg"}
