Skip to content

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

chore: files changed crates/openhuman-core/src/agent/subagent_host/ops/runner.rs

Steven Enamakel0ed65b9481ba
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index 2fa327bcf9..052da01324 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -806,14 +806,14 @@ async fn run_typed_mode(
);
}
+ let mut child_run_context = options
+ .run_context
+ .for_subagent(definition, config.as_ref().ok().map(AsRef::as_ref));
+ child_run_context.parent = Some(parent.clone());
+ let dynamic_tools = nested_spawn_tool
+ .map(|tool| vec![Box::new(tool) as Box<dyn Tool>])
+ .unwrap_or_default();
let (output, iterations, agg_usage, early_exit_tool, hit_cap, breaker_halt, failure_cause) =
- let mut child_run_context = options
- .run_context
- .for_subagent(definition, config.as_ref().ok().map(AsRef::as_ref));
- child_run_context.parent = Some(parent.clone());
- let dynamic_tools = nested_spawn_tool
- .map(|tool| vec![Box::new(tool) as Box<dyn Tool>])
- .unwrap_or_default();
super::graph::run_subagent_via_graph(
subagent_source.clone(),
&model,