Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime construction helpers for strategy tests.

make_runtime constructs a fully-configured AgentRuntime with sensible defaults, reducing test setup to a single function call.

§Example

use traitclaw_test_utils::provider::MockProvider;
use traitclaw_test_utils::runtime::make_runtime;

let rt = make_runtime(MockProvider::text("ok"), vec![]);
// rt is ready for strategy.execute(&rt, "input", "session-1")

Functions§

make_runtime
Create a minimal AgentRuntime with the given provider and tools.
make_runtime_with_config
Create a minimal AgentRuntime with custom AgentConfig.