feat: Implemented initial scaffolding for built-in sub-agent spawning tool call operations

This commit is contained in:
2026-02-17 11:48:31 -07:00
parent af933bbb29
commit 44c03ccf4f
5 changed files with 598 additions and 0 deletions
+12
View File
@@ -1,12 +1,14 @@
pub mod mailbox;
pub mod taskqueue;
use fmt::{Debug, Formatter};
use crate::utils::AbortSignal;
use mailbox::Inbox;
use taskqueue::TaskQueue;
use anyhow::{Result, bail};
use std::collections::HashMap;
use std::fmt;
use std::sync::Arc;
use tokio::task::JoinHandle;
@@ -128,3 +130,13 @@ impl Supervisor {
}
}
}
impl Debug for Supervisor {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
f.debug_struct("Supervisor")
.field("active_agents", &self.handles.len())
.field("max_concurrent", &self.max_concurrent)
.field("max_depth", &self.max_depth)
.finish()
}
}