pub trait AgentSpawner: Send + Sync {
// Required method
fn spawn<'life0, 'async_trait>(
&'life0 self,
config: SubAgentConfig,
cancel_token: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<SubAgentResult, SubAgentError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}