Skip to main content

SubagentSpawner

Trait SubagentSpawner 

Source
pub trait SubagentSpawner: Send + Sync {
    // Required method
    fn spawn<'life0, 'async_trait>(
        &'life0 self,
        task: String,
        label: Option<String>,
        channel: String,
        chat_id: String,
    ) -> Pin<Box<dyn Future<Output = Result<String, ToolError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn spawn<'life0, 'async_trait>( &'life0 self, task: String, label: Option<String>, channel: String, chat_id: String, ) -> Pin<Box<dyn Future<Output = Result<String, ToolError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§