pub trait SubAgent: Send + Sync {
// Required methods
fn name(&self) -> String;
fn description(&self) -> String;
fn run<'life0, 'async_trait>(
&'life0 self,
input: String,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
SubAgent represents a specialist agent that can be delegated work.
Required Methods§
Sourcefn description(&self) -> String
fn description(&self) -> String
Returns the description of what the sub-agent does