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
fix: reformat long method chains for readability
Steven Enamakel623bc7a67e50
diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rsindex 0c4c4e2957..997e955ebf 100644--- a/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rs+++ b/crates/openhuman-core/src/agent/tinyagents/harness_tool_registration.rs@@ -162,10 +162,9 @@ pub(super) fn register_turn_tools_and_agents(}).cloned();match handle {- Some(handle) => harness- .register_tool_dispatch(Arc::new(UseSkillDispatch::new(- adapter, handle,- ))),+ Some(handle) => harness.register_tool_dispatch(Arc::new(+ UseSkillDispatch::new(adapter, handle),+ )),None => harness.register_tool(adapter),};} else if let Some(dispatch) = typed_dispatch_for(name, adapter.clone()) {diff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rsindex 31bcd1cbca..ec70e4acb2 100644--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs@@ -85,7 +85,10 @@ impl ToolDispatch<(), OpenHumanRunContext> for UseSkillDispatch {});let Some((name, tools)) = resolved else {- return self.tool.execute_with_context(arguments, options, None).await;+ return self+ .tool+ .execute_with_context(arguments, options, None)+ .await;};let inner_args = arguments@@ -104,11 +107,16 @@ impl ToolDispatch<(), OpenHumanRunContext> for UseSkillDispatch {super::tools::CanonicalSharedToolAdapter::for_name(vec![tools], &name).map(|adapter| Arc::new(adapter) as Arc<dyn Tool>)else {- return self.tool.execute_with_context(arguments, options, None).await;+ return self+ .tool+ .execute_with_context(arguments, options, None)+ .await;};if let Some(dispatch) = typed_dispatch_for(&name, inner_adapter.clone()) {- return dispatch.execute(&(), call_id, inner_args, options, parent).await;+ return dispatch+ .execute(&(), call_id, inner_args, options, parent)+ .await;}// Not a typed-dispatch tool: run it the way `use_skill` always has,diff --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 be859dd98e..5a5c76a8b2 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@@ -15,9 +15,9 @@use super::*;use crate::agent::harness::definition::AgentDefinitionRegistry;-use crate::agent::tinyagents::tools::CanonicalSharedToolAdapter;use crate::agent::harness::ParentExecutionContext;use crate::agent::prompts::ToolCallFormat;+use crate::agent::tinyagents::tools::CanonicalSharedToolAdapter;use crate::memory::{Memory, MemoryCategory, MemoryEntry, NamespaceSummary, RecallOpts};use crate::tools::toolpacks::tools::{PackRegistryHandle, UseSkillTool};use async_trait::async_trait;@@ -183,8 +183,9 @@ fn build_use_skill_dispatch() -> UseSkillDispatch {let durable: Arc<Vec<Box<dyn Tool>>> = Arc::new(vec![use_skill_tool, create_image_tool]);handle.bind(Arc::downgrade(&durable));- let adapter = CanonicalSharedToolAdapter::for_name(vec![durable], crate::tools::toolpacks::USE_SKILL)- .expect("use_skill resolves in the durable registry it was just placed in");+ let adapter =+ CanonicalSharedToolAdapter::for_name(vec![durable], crate::tools::toolpacks::USE_SKILL)+ .expect("use_skill resolves in the durable registry it was just placed in");UseSkillDispatch::new(Arc::new(adapter), handle)}