Skip to content

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

refactor(orchestration): re-export subagent tool helpers from tools module

Steven Enamakelb56bd3227816
diff --git a/crates/openhuman-core/src/agent/orchestration/tools.rs b/crates/openhuman-core/src/agent/orchestration/tools.rs
index 12d012cd8b..4c8dfcc6f0 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools.rs
@@ -52,6 +52,10 @@ mod tools_e2e_tests;
mod wait_subagent;
pub(crate) use dispatch::DelegationDispatch;
+pub(crate) use list_subagents::overlay_task_store_status;
+pub(crate) use wait_subagent::{
+ format_running_wait_message, requested_timeout_secs, wait_status_payload,
+};
/// A minimal live TinyAgents carrier over `parent`, for tests that drive a
/// concrete tool directly (outside an agent turn) under an explicit parent
diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
index 1d0d690f45..1f32147511 100644
--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
@@ -124,7 +124,7 @@ fn project_list_subagents(
>(row) else {
continue;
};
- crate::agent::orchestration::tools::list_subagents::overlay_task_store_status(
+ crate::agent::orchestration::tools::overlay_task_store_status(
&mut summary,
&parent_ctx.workspace_dir,
&parent_ctx.session_id,
@@ -220,7 +220,7 @@ fn project_wait_subagent(
&parent_ctx.workspace_dir,
&task_id,
);
- let payload = crate::agent::orchestration::tools::wait_subagent::wait_status_payload(
+ let payload = crate::agent::orchestration::tools::wait_status_payload(
Some(&resume),
&task_id,
"completed",
@@ -236,7 +236,7 @@ fn project_wait_subagent(
}
"awaiting_input" | "awaiting_user" => {
let question = output;
- let payload = crate::agent::orchestration::tools::wait_subagent::wait_status_payload(
+ let payload = crate::agent::orchestration::tools::wait_status_payload(
Some(&resume),
&task_id,
"awaiting_user",
@@ -264,7 +264,7 @@ fn project_wait_subagent(
ToolResult::success(message)
}
"failed" | "incomplete" | "cancelled" => {
- let payload = crate::agent::orchestration::tools::wait_subagent::wait_status_payload(
+ let payload = crate::agent::orchestration::tools::wait_status_payload(
Some(&resume),
&task_id,
"failed",
@@ -278,12 +278,10 @@ fn project_wait_subagent(
))
}
_ => ToolResult::success(
- crate::agent::orchestration::tools::wait_subagent::format_running_wait_message(
+ crate::agent::orchestration::tools::format_running_wait_message(
Some(&resume),
&task_id,
- crate::agent::orchestration::tools::wait_subagent::requested_timeout_secs(
- arguments,
- ),
+ crate::agent::orchestration::tools::requested_timeout_secs(arguments),
),
),
}