pub struct DefaultSubagentManager { /* private fields */ }Expand description
Default subagent manager implementation.
Implementations§
Trait Implementations§
Source§impl Debug for DefaultSubagentManager
impl Debug for DefaultSubagentManager
Source§impl SubagentPort for DefaultSubagentManager
impl SubagentPort for DefaultSubagentManager
Source§fn spawn<'life0, 'async_trait>(
&'life0 self,
task: String,
parent_session_id: SessionId,
model: Option<String>,
max_steps: Option<u32>,
extra_deny_tools: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<SessionId, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn spawn<'life0, 'async_trait>(
&'life0 self,
task: String,
parent_session_id: SessionId,
model: Option<String>,
max_steps: Option<u32>,
extra_deny_tools: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<SessionId, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Spawn a new subagent task. Returns the subagent ID immediately.
Source§fn await_result<'life0, 'life1, 'async_trait>(
&'life0 self,
subagent_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<SubagentResult, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn await_result<'life0, 'life1, 'async_trait>(
&'life0 self,
subagent_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<SubagentResult, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Await a subagent’s result (blocks until completion).
Source§fn list_active<'life0, 'life1, 'async_trait>(
&'life0 self,
parent_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<SessionId>, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_active<'life0, 'life1, 'async_trait>(
&'life0 self,
parent_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<SessionId>, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List currently active subagent IDs for a parent session.
Auto Trait Implementations§
impl !Freeze for DefaultSubagentManager
impl !RefUnwindSafe for DefaultSubagentManager
impl Send for DefaultSubagentManager
impl Sync for DefaultSubagentManager
impl Unpin for DefaultSubagentManager
impl UnsafeUnpin for DefaultSubagentManager
impl !UnwindSafe for DefaultSubagentManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more