pub trait Agent: Send + Sync {
// Required methods
fn id(&self) -> &str;
fn name(&self) -> &str;
fn capabilities(&self) -> &[String];
fn execute<'life0, 'async_trait>(
&'life0 self,
task: Task,
) -> Pin<Box<dyn Future<Output = Result<TaskResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Agent trait for AI agents
Required Methods§
Sourcefn capabilities(&self) -> &[String]
fn capabilities(&self) -> &[String]
Get agent capabilities