feat: wired together graph execution and agent graph dispatch

This commit is contained in:
2026-05-14 11:10:45 -06:00
parent 84497d3d65
commit 9bc4f8b621
11 changed files with 270 additions and 12 deletions
+9
View File
@@ -332,6 +332,15 @@ pub fn run_child_agent(
abort_signal: AbortSignal,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send>> {
Box::pin(async move {
if crate::graph::active_agent_graph_name(&child_ctx).is_some() {
return crate::graph::run_active_agent_graph(
&mut child_ctx,
&initial_input.text(),
abort_signal,
)
.await;
}
let mut accumulated_output = String::new();
let mut input = initial_input;
let app = Arc::clone(&child_ctx.app.config);