The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(tools): update tool policy and host extension handling
Steven Enamakele701b63a3685
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rsindex eb306c29a2..8c3c350a69 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_policy.rs@@ -280,7 +280,7 @@ impl ToolPolicyHostState {let rendered = tinyagents_harness_tools::skills::render_pack_filtered(&crate::tools::toolpacks::CATALOG,skill,- handle,+ &handle,// The same predicate the gate applies to `use_skill`'s inner tool.// Two sources of truth for "can this session call it" is the bug.&is_callable,diff --git a/crates/openhuman-core/src/tools/host_extensions.rs b/crates/openhuman-core/src/tools/host_extensions.rsindex 22933fde54..13e74ba4a7 100644--- a/crates/openhuman-core/src/tools/host_extensions.rs+++ b/crates/openhuman-core/src/tools/host_extensions.rs@@ -10,10 +10,9 @@ use tinyagents_harness_tools::skills::PackRegistryHandle;use tinytools::{PermissionLevel, ToolCategory, ToolResult, ToolScope};use tinytools::{Tool, ToolRunContext};-/// Reads a tool's pack-registry handle from its erased host extension.-pub fn pack_registry_handle(tool: &dyn Tool) -> Option<&PackRegistryHandle> {- tool.host_extension()- .and_then(|any| any.downcast_ref::<PackRegistryHandle>())+/// Reads the owner's shared pack-registry handle from a registered `use_skill` tool.+pub fn pack_registry_handle(tool: &dyn Tool) -> Option<PackRegistryHandle> {+ tinyagents_harness_tools::skills::pack_registry_handle(tool)}/// Reads the target agent a synthesized `delegate_*` tool routes to.