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
refactor(orchestration): use re-exported types from tinyagents_orchestration
Steven Enamakeld4458168bc8b
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rsindex 76b2577529..4442752798 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs@@ -1,7 +1,7 @@-use super::cancel::FinishedOutcome;+use tinyagents_orchestration::subagent::FinishedOutcome;use super::*;use crate::agent::orchestration::fleet_tools::FleetToolSet;-use crate::agent::orchestration::running_subagents::registry::DETACHED_LEDGER_TIMEOUT_MS;+use tinyagents_orchestration::subagent::{DetachedSubagentStatus, WaitError, DETACHED_LEDGER_TIMEOUT_MS};use crate::agent::orchestration::running_subagents::resolve::resume_ref_for_task;use crate::agent::orchestration::running_subagents::resolve::task_id_for_session;use crate::agent::orchestration::running_subagents::roster::snapshot_for_parent;diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rsindex 5aa6f0e359..bbfea3183e 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_wire_tests.rs@@ -4,7 +4,8 @@//! the bytes; they must not change when the generic logic moves upstream.use super::*;-use crate::agent::orchestration::running_subagents::cancel::FinishedOutcome;+use tinyagents_orchestration::subagent::WaitError;+use tinyagents_orchestration::subagent::FinishedOutcome;use crate::agent::orchestration::running_subagents::roster::snapshot_for_parent;use crate::agent::orchestration::running_subagents::task_ledger::task_store_for_workspace;use tinyagents_graph::orchestration::{diff --git a/crates/openhuman-core/src/agent/orchestration/tools/list_subagents.rs b/crates/openhuman-core/src/agent/orchestration/tools/list_subagents.rsindex 795d8181aa..4cdc1d07a9 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/list_subagents.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/list_subagents.rs@@ -163,8 +163,8 @@ fn overlay_task_store_status(parent_session,) {Ok(record) => record,- Err(running_subagents::WaitError::Unknown) => return,- Err(running_subagents::WaitError::NotOwned) => {+ Err(tinyagents_orchestration::subagent::WaitError::Unknown) => return,+ Err(tinyagents_orchestration::subagent::WaitError::NotOwned) => {log::warn!("[subagent_reuse] task store overlay rejected task_id={} subagent_session_id={} reason=not_owned",task_id,diff --git a/crates/openhuman-core/src/agent/orchestration/tools/steer_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/steer_subagent.rsindex f3d4851bf5..255268cf91 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/steer_subagent.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/steer_subagent.rs@@ -163,12 +163,12 @@ impl SteerSubagentTool {&parent.workspace_dir,) {Ok(id) => id,- Err(running_subagents::WaitError::Unknown) => {+ Err(tinyagents_orchestration::subagent::WaitError::Unknown) => {return Ok(ToolResult::error(format!("steer_subagent: no running sub-agent with subagent_session_id `{subagent_session_id}`.")));}- Err(running_subagents::WaitError::NotOwned) => {+ Err(tinyagents_orchestration::subagent::WaitError::NotOwned) => {return Ok(ToolResult::error(format!("steer_subagent: sub-agent session `{subagent_session_id}` was not started by this agent.")));diff --git a/crates/openhuman-core/src/agent/orchestration/tools/wait_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/wait_subagent.rsindex a9e87b76b5..da2c996343 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/wait_subagent.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/wait_subagent.rs@@ -9,7 +9,9 @@ use std::time::Duration;use crate::agent::harness::fork_context::ParentExecutionContext;use crate::agent::orchestration::running_subagents;-use tinyagents_orchestration::subagent::{DetachedSubagentStatus, WaitError, WaitOutcome};+use tinyagents_orchestration::subagent::{+ DetachedSubagentStatus, SubagentResumeRef, WaitError, WaitOutcome,+};use async_trait::async_trait;use serde_json::json;use std::sync::Arc;@@ -366,7 +368,7 @@ impl WaitSubagentTool {/// Render a timeout/running wait response with a structured status payload.fn format_running_wait_message(- reference: Option<&running_subagents::SubagentResumeRef>,+ reference: Option<&SubagentResumeRef>,task_id: &str,timeout_secs: u64,) -> String {@@ -387,7 +389,7 @@ fn format_running_wait_message(/// Build the machine-readable wait status block returned to the orchestrator.fn wait_status_payload(- reference: Option<&running_subagents::SubagentResumeRef>,+ reference: Option<&SubagentResumeRef>,task_id: &str,status: &str,iterations: Option<usize>,