Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(tests): qualify tool execution context return type

Steven Enamakelf3c7fa2b501e
diff --git a/src/openhuman/tools/impl/system/shell.rs b/src/openhuman/tools/impl/system/shell.rs
index b4dc12f72c..d4b9aaae39 100644
--- a/src/openhuman/tools/impl/system/shell.rs
+++ b/src/openhuman/tools/impl/system/shell.rs
@@ -985,8 +985,11 @@ mod tests {
/// at `root`, mirroring what the tinyagents harness threads into every tool
/// call of a worktree-isolated worker (`RunContext::with_workspace` →
/// `ToolExecutionContext::from_run_context`).
- fn tool_context_with_workspace(root: &std::path::Path) -> ToolExecutionContext {
+ fn tool_context_with_workspace(
+ root: &std::path::Path,
+ ) -> tinyagents::harness::tool::ToolExecutionContext {
use tinyagents::harness::context::{RunConfig, RunContext};
+ use tinyagents::harness::tool::ToolExecutionContext;
use tinyagents::harness::workspace::WorkspaceDescriptor;
let ws = WorkspaceDescriptor::new(root.to_path_buf()).with_policy_id("test-worktree");
let ctx: RunContext = RunContext::new(RunConfig::new("test-run"), ()).with_workspace(ws);