traitclaw-test-utils
Shared test utilities for the TraitClaw AI Agent Framework.
Provides reusable mock implementations and helpers for testing agents without hitting real LLM APIs:
MockProvider— Deterministic LLM provider returning pre-defined responsesMockMemory— In-memory session-based memory backendEchoTool— Tool that echoes its input for tool-calling testsFailTool— Tool that always returns an errormake_runtime— One-callAgentRuntimesetup for strategy tests
Usage
[]
= "1.0"
use MockProvider;
use make_runtime;
let runtime = make_runtime;
// Use runtime with any AgentStrategy for deterministic testing
Documentation
License
Licensed under either of Apache License, Version 2.0 or MIT License at your option.