feat: Implemented initial scaffolding for built-in sub-agent spawning tool call operations
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user