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
feat(agent): dispatch skills through tinyagents
Steven Enamakel86ba020d3f6e
diff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rsindex ae6af980bd..210bd1a88d 100644--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs@@ -14,7 +14,7 @@//! [`UseSkillDispatch`] closes the gap: it resolves the inner tool exactly as//! [`crate::tools::toolpacks::tools::UseSkillTool::execute_with_context`]//! does, then re-selects the same-//! [`super::harness_tool_registration::typed_dispatch_for`] the harness would+//! [`super::tool_registration::typed_dispatch_for`] the harness would//! have picked had the inner tool been natively advertised, and hands it the//! REAL parent this dispatch itself received. The disclosure half (no `tool`//! named), a missing `skill`, and a not-found tool are all delegated verbatim@@ -31,7 +31,7 @@ use tinyagents_harness::context::RunContext;use tinyagents_harness::tool::{ToolDispatch, ToolExecutionContext};use tinytools::{Tool, ToolCallOptions, ToolResult};-use super::harness_tool_registration::typed_dispatch_for;+use super::tool_registration::typed_dispatch_for;use super::host::OpenHumanRunContext;use crate::tools::toolpacks::registry::CATALOG;use tinyagents_harness::tool::packs::{named_tool, PackRegistryHandle};@@ -97,7 +97,7 @@ impl ToolDispatch<(), OpenHumanRunContext> for UseSkillDispatch {.cloned().unwrap_or_else(|| serde_json::json!({}));let Some(inner_adapter) =- super::tools::CanonicalSharedToolAdapter::for_name(vec![tools], name)+ super::tool_registration::shared_tool_adapter(vec![tools], name).map(|adapter| Arc::new(adapter) as Arc<dyn Tool>)else {// Freeze the not-found result too: a target appearing after@@ -168,7 +168,7 @@ impl ToolDispatch<(), OpenHumanRunContext> for UseSkillDispatch {// had the model reached `name` directly instead of through// `use_skill`.let Some(inner_adapter) =- super::tools::CanonicalSharedToolAdapter::for_name(vec![tools], &name)+ super::tool_registration::shared_tool_adapter(vec![tools], &name).map(|adapter| Arc::new(adapter) as Arc<dyn Tool>)else {return selfdiff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rsindex 1f48c73bb3..419ec5f8f3 100644--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs@@ -16,7 +16,7 @@use super::*;use crate::agent::harness::host_definition::AgentDefinitionRegistry;use crate::agent::harness::ParentExecutionContext;-use crate::agent::tinyagents::tools::CanonicalSharedToolAdapter;+use crate::agent::tinyagents::tool_registration::shared_tool_adapter;use async_trait::async_trait;use serde_json::json;use std::path::Path;