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(tools): correct tool dispatch to use tool name instead of index
Steven Enamakelf7e124943467
diff --git a/crates/openhuman-core/src/agent/harness/graph_tests.rs b/crates/openhuman-core/src/agent/harness/graph_tests.rsindex 4a11e942f2..5f1065fcaa 100644--- a/crates/openhuman-core/src/agent/harness/graph_tests.rs+++ b/crates/openhuman-core/src/agent/harness/graph_tests.rs@@ -80,7 +80,7 @@ async fn channel_turn_runs_through_the_graph() {#[tokio::test]async fn channel_turn_pauses_on_ask_user_clarification() {let registry: Arc<Vec<Box<dyn Tool>>> = Arc::new(vec![Box::new(- crate::agent::tools::AskClarificationTool::new(),+ tinyagents_harness::tools::AskClarificationTool::new(),)]);let mut history = vec![ChatMessage::user("build me a workflow")];let scripted: Arc<dyn ChatModel<()>> = Arc::new(ScriptedModel::new(vec![diff --git a/crates/openhuman-core/src/agent/orchestration/tools.rs b/crates/openhuman-core/src/agent/orchestration/tools.rsindex 4c166cd460..8b5c35c1da 100644--- a/crates/openhuman-core/src/agent/orchestration/tools.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools.rs@@ -51,8 +51,6 @@ mod subagent_abort_report;#[cfg(test)]#[path = "tools/tools_e2e_tests.rs"]mod tools_e2e_tests;-#[path = "tools/wait.rs"]-mod wait;#[path = "tools/wait_subagent.rs"]mod wait_subagent;#[path = "tools/worker_thread.rs"]@@ -97,6 +95,5 @@ pub(crate) use spawn_worker_thread::SpawnWorkerThreadDispatch;pub use spawn_worker_thread::SpawnWorkerThreadTool;pub(crate) use steer_subagent::SteerSubagentDispatch;pub use steer_subagent::SteerSubagentTool;-pub use wait::{WaitLoopTool, WaitTool};pub(crate) use wait_subagent::WaitSubagentDispatch;pub use wait_subagent::WaitSubagentTool;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rsindex 5896798852..e32caf55da 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs@@ -7,7 +7,8 @@ use super::super::collapsed_delegation::{dispatch_targets_from_schema, CollapsedDelegationTool, DelegateTarget,};use super::super::delegate_graph::DelegateGraphDispatch;-use crate::agent::tools::{AskClarificationTool, DelegateToolDispatch};+use crate::agent::tools::DelegateToolDispatch;+use tinyagents_harness::tools::AskClarificationTool;use tinyagents_harness::context::RunConfig;use tinyagents_harness::tool::ToolDispatch;@@ -198,7 +199,7 @@ fn collapsed_dispatch_mapping_has_exact_advertised_vocabulary_and_rejects_drift(}#[test]-fn ask_clarification_tool_re_exported() {+fn ask_clarification_tool_is_the_harness_tool() {let tool = AskClarificationTool::new();assert_eq!(tool.name(), "ask_user_clarification");}diff --git a/crates/openhuman-core/src/agent/tools.rs b/crates/openhuman-core/src/agent/tools.rsindex 618c776772..83b88c949e 100644--- a/crates/openhuman-core/src/agent/tools.rs+++ b/crates/openhuman-core/src/agent/tools.rs@@ -25,7 +25,6 @@//! `crate::tools` re-exports everything here (`pub use//! crate::agent::tools::*;` in `tools/mod.rs`); `tools::ops` registers the//! tools into the catalog.-mod ask_clarification;mod delegate;mod plan_exit;pub mod remember_preference;@@ -37,7 +36,6 @@ mod run_workflow;pub mod save_preference;mod todo;-pub use ask_clarification::AskClarificationTool;pub use delegate::DelegateTool;pub(crate) use delegate::DelegateToolDispatch;pub use plan_exit::{PlanExitTool, PLAN_EXIT_MARKER};diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rsindex d8f13f9c6e..e454a023d3 100644--- a/crates/openhuman-core/src/tools/ops.rs+++ b/crates/openhuman-core/src/tools/ops.rs@@ -7,7 +7,9 @@ use crate::runtime::python::PythonBootstrap;use crate::security::{AuditLogger, SecurityPolicy};use std::collections::HashMap;use std::sync::Arc;-use tinyagents_harness::tools::{CurrentTimeTool, ResolveTimeTool};+use tinyagents_harness::tools::{+ AskClarificationTool, CurrentTimeTool, ResolveTimeTool, WaitLoopTool, WaitTool,+};use tinytools::Tool;#[cfg(test)]use tinytools::{ToolResult, ToolSpec};