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(subagent_host): remove configured delegate runner export
Steven Enamakel4a882acf3753
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rsindex 07dec4e70e..1e913a65a1 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs@@ -161,55 +161,6 @@ pub(crate) async fn run_subagent_via_driver_tool(resolve_inline_driver_outcome(tool_result, &bundle, &task_key, &fallback_agent_id).await}-/// Runs the configured one-shot `delegate` executor inside the shared Tiny-/// subagent job lifecycle. Its captured Tool still owns config lookup, model-/// routing, security checks and response formatting; this adapter supplies the-/// authenticated parent, cancellation, stable target identity and Jobs record.-pub(crate) async fn run_configured_delegate_via_driver_tool(- parent: &RunContext<crate::agent::tinyagents::host::OpenHumanRunContext>,- tool: Arc<dyn tinytools::Tool>,- arguments: serde_json::Value,- agent_id: String,-) -> Result<tinytools::ToolResult, SubagentRunError> {- let task_id = format!("delegate-{}", uuid::Uuid::new_v4());- let mut options = SubagentRunOptions::default();- options.task_id = Some(task_id.clone());- options.thread_id = parent.thread_id().map(|id| id.as_str().to_owned());- options.run_context = parent.data.clone();- let input = arguments- .get("prompt")- .and_then(serde_json::Value::as_str)- .unwrap_or_default()- .to_owned();- let request = HostRequest {- invocation: HostInvocation::ConfiguredTool {- agent_id,- tool,- arguments,- },- options,- };- let (tool_result, bundle) =- invoke_driver_tool_with_request(parent, request, input, "inline", None, None, None).await?;- let task_key = SubagentTaskKey::from_context(- parent,- task_id,- parent.thread_id().map(|id| id.as_str().to_owned()),- );- decode_driver_job_result(tool_result, &bundle, &task_key)?;- let result = bundle- .configured_tool_result- .lock()- .unwrap_or_else(|poisoned| poisoned.into_inner())- .remove(&task_key)- .ok_or_else(|| {- SubagentRunError::Provider(anyhow::anyhow!(- "driver-backed configured delegate completed without a host result"- ))- });- result-}-/// Continues a host-authorized pause through TinyAgents' registered Jobs/// dispatcher, preserving the original lifecycle key and checkpoint payload.pub(crate) async fn continue_subagent_via_driver_tool(diff --git a/crates/openhuman-core/src/agent/subagent_host/mod.rs b/crates/openhuman-core/src/agent/subagent_host/mod.rsindex 1bfe51478b..067c4fc891 100644--- a/crates/openhuman-core/src/agent/subagent_host/mod.rs+++ b/crates/openhuman-core/src/agent/subagent_host/mod.rs@@ -59,7 +59,6 @@ pub use autonomous::{definition_iter_cap, subagent_iter_cap_with_autonomous_liftpub(crate) use lifecycle::detached_subagent_parent;pub(crate) use lifecycle::load_subagent_checkpoint;pub(crate) use lifecycle::load_terminal_outcome;-pub(crate) use lifecycle::run_configured_delegate_via_driver_tool;pub(crate) use lifecycle::run_subagent_via_driver_tool;pub(crate) use lifecycle::spawn_async_via_driver_tool;#[cfg(test)]