pub trait Agent: Send + Sync {
// Required methods
fn id(&self) -> AgentId;
fn name(&self) -> &str;
fn step<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut InvestigationContext,
) -> Pin<Box<dyn Future<Output = Result<AgentStepResult, KernelError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
A composable agent: skills + scoped tools + a step driver.
Required Methods§
fn id(&self) -> AgentId
fn name(&self) -> &str
Sourcefn step<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut InvestigationContext,
) -> Pin<Box<dyn Future<Output = Result<AgentStepResult, KernelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn step<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut InvestigationContext,
) -> Pin<Box<dyn Future<Output = Result<AgentStepResult, KernelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Drive one investigation pass over ctx. Implementations decide
the iteration policy (single pass, fixed-point, until-conclude…).