Skip to content

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

refactor(subagent): tidy imports and re-exports for spawn tools

Steven Enamakel5b42e980e30a
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
index f9ee3834e4..65dfc1023b 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
@@ -12,9 +12,7 @@ use crate::agent::orchestration::subagent_sessions::{
SubagentSessionUpsert,
};
use crate::agent::orchestration::tools::dispatch::incomplete_stop;
-use crate::agent::subagent_host::{
- SubagentRunOptions, SubagentRunStatus,
-};
+use crate::agent::subagent_host::{SubagentRunOptions, SubagentRunOutcome, SubagentRunStatus};
use crate::agent_registry::host_definition::AgentDefinitionRegistry;
use crate::core::runtime::DispatchCtx;
use crate::progress::AgentProgress;
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
index 2f92b98d44..ab72679043 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
@@ -182,7 +182,7 @@ impl SpawnAsyncSubagentTool {
if let Some(session) = reusable.as_ref() {
if session.status == DurableSubagentStatus::Running {
if let Some(ref running_task_id) = session.current_task_id {
- match super::steer_reusable_session(
+ match steer_reusable_session(
&detached_parent,
&session.subagent_session_id,
follow_up_prompt.clone(),
diff --git a/crates/openhuman-core/src/agent/subagent_host/mod.rs b/crates/openhuman-core/src/agent/subagent_host/mod.rs
index dc04033aa8..009be9ad01 100644
--- a/crates/openhuman-core/src/agent/subagent_host/mod.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/mod.rs
@@ -57,7 +57,7 @@ mod persisted_compat_tests;
// Public API — the entry point and the shapes it returns.
pub use autonomous::{definition_iter_cap, subagent_iter_cap_with_autonomous_lift};
pub(crate) use lifecycle::load_subagent_checkpoint;
-pub(crate) use lifecycle::run_async_spawn_via_driver_tool;
+pub(crate) use lifecycle::{run_async_spawn_via_driver_tool, spawn_async_via_driver_tool};
pub use lifecycle::{
continue_subagent, continue_subagent_with_parent, run_subagent, run_subagent_with_parent,
OpenHumanSubagentHost,
diff --git a/vendor/tinyagents b/vendor/tinyagents
index 8712b1e483..a39b7643b7 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit 8712b1e48383f01e9b3e5fac61b1f2a65df91ad1
+Subproject commit a39b7643b7b060a315d3ee86086953a408362493