Skip to content

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

fix(tools): import ToolRunContext\n\nAdd the missing ToolRunContext imports to tool implementations so they compile and can access the shared execution context.\n\nAuto-committed-on: dragonfly\n

Steven Enamakel6331983b690f
diff --git a/src/openhuman/agent/tinyagents/tools.rs b/src/openhuman/agent/tinyagents/tools.rs
index e89a293590..cab485eb02 100644
--- a/src/openhuman/agent/tinyagents/tools.rs
+++ b/src/openhuman/agent/tinyagents/tools.rs
@@ -11,6 +11,7 @@ use std::sync::{Arc, Mutex, PoisonError};
use async_trait::async_trait;
use tinyagents::harness::steering::{SteeringCommand, SteeringHandle};
use tinyagents::harness::tool::{
+use tinytools::ToolRunContext;
SandboxMode, Tool, ToolAccess, ToolCall as TaToolCall, ToolExecutionContext, ToolPolicy,
ToolResult as TaToolResult, ToolRuntime, ToolSchema, ToolSideEffects,
ToolTimeout as TaToolTimeout, WorkspaceAccess,
diff --git a/src/openhuman/tools/toolpacks/tools.rs b/src/openhuman/tools/toolpacks/tools.rs
index 5fa989da89..3cc84fbcfc 100644
--- a/src/openhuman/tools/toolpacks/tools.rs
+++ b/src/openhuman/tools/toolpacks/tools.rs
@@ -7,6 +7,7 @@ use serde_json::{json, Value};
use super::registry;
use crate::openhuman::tools::traits::{PermissionLevel, Tool, ToolCallOptions, ToolResult};
+use tinytools::ToolRunContext;
pub const LOAD_SKILL: &str = "load_skill";
pub const USE_SKILL: &str = "use_skill";