1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Fluent assertion API for testing AI agent execution output.
//!
//! This module provides a Jest-like API for making assertions about tool calls
//! and stdout output. Assertions evaluate immediately (panic on failure) when
//! using methods like `to_be_called()`, or can be evaluated non-destructively
//! using `evaluate()`.
//!
//! # Example
//!
//! ```rust,ignore
//! use aptitude::{expect, expect_tools, Tool};
//!
//! let output = harness.execute(...)?;
//!
//! // Tool assertions
//! expect(&output)
//! .tool(Tool::Read)
//! .to_be_called();
//!
//! // Stdout assertions
//! expect(&output)
//! .stdout()
//! .contains("success")
//! .to_exist();
//!
//! // For backward compatibility (tool calls only)
//! let tool_calls = parse_session("session.jsonl")?;
//! expect_tools(&tool_calls)
//! .tool(Tool::Read)
//! .evaluate();
//! ```
pub use ;
pub use params_match;
pub use StdoutAssertion;
pub use Tool;