traitclaw_test_utils/lib.rs
1#![deny(missing_docs)]
2#![allow(clippy::redundant_closure)]
3
4//! # `TraitClaw` Test Utilities
5//!
6//! Shared test utilities for the `TraitClaw` AI Agent Framework.
7//!
8//! This crate provides reusable mock implementations and helpers
9//! for testing agents without hitting real LLM APIs:
10//!
11//! - [`MockProvider`](provider::MockProvider) — Deterministic LLM provider returning pre-defined responses
12//! - [`MockMemory`](memory::MockMemory) — In-memory session-based memory backend
13//! - [`EchoTool`](tools::EchoTool) — Tool that echoes its input for tool-calling tests
14//! - [`FailTool`](tools::FailTool) — Tool that always returns an error
15//! - [`make_runtime`](runtime::make_runtime) — One-call `AgentRuntime` setup for strategy tests
16//!
17//! # Quick Start
18//!
19//! ```rust
20//! use traitclaw_test_utils::provider::MockProvider;
21//! use traitclaw_test_utils::runtime::make_runtime;
22//!
23//! let runtime = make_runtime(MockProvider::text("hello"), vec![]);
24//! // Use runtime with any AgentStrategy for deterministic testing
25//! ```
26
27pub mod memory;
28pub mod provider;
29pub mod runtime;
30pub mod tools;