Skip to main content

SubagentRunner

Trait SubagentRunner 

Source
pub trait SubagentRunner: Send + Sync {
    // Required method
    fn run_subagent<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        parent: &'life1 CandidateWorkspace,
        role: &'life2 str,
        goal: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<EffectOutcome>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Runtime hook backing spawn_agent inside CandidateWorkspace.

Required Methods§

Source

fn run_subagent<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, parent: &'life1 CandidateWorkspace, role: &'life2 str, goal: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<EffectOutcome>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§