Skip to content

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

chore: remove unused imports in tinyagents tools

Steven Enamakelbd19313c9e36
diff --git a/crates/openhuman-core/src/agent/tinyagents/tools.rs b/crates/openhuman-core/src/agent/tinyagents/tools.rs
index 8319f7936e..06f24c8c35 100644
--- a/crates/openhuman-core/src/agent/tinyagents/tools.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/tools.rs
@@ -129,6 +129,19 @@ impl Tool for CanonicalSharedToolAdapter {
self.resolved_tool().map(Tool::policy).unwrap_or_default()
}
+ /// Forwarded so the harness advertises only `Direct` registrations and
+ /// indexes `Deferred` ones for its `tool_search` bridge. Without this
+ /// every registered tool reported `Direct` and the bridge stayed inert.
+ fn exposure(&self) -> tinytools::ToolExposure {
+ self.resolved_tool()
+ .map(Tool::exposure)
+ .unwrap_or_default()
+ }
+
+ fn family(&self) -> Option<&str> {
+ self.resolved_tool().and_then(Tool::family)
+ }
+
async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
self.execute_with_context(
args,