Tactus
Learn MoreGet StartedDownload

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

Has SpecsRequires API Keys

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

View example →

Passing Specs

Has SpecsRequires API Keys

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

View example →

Fuzzy Matching

Has SpecsRequires API Keys

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

View example →

← Previous ChapterStandard LibraryNext Chapter →Evaluations

Want to contribute?

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

View on GitHub

Tactus is free and open source.

View Source
Tactus icon
Code Responsibly
Designed cybernetically
by Ryan Porter