Skip to main content

Agent

Trait Agent 

Source
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§

Source

fn id(&self) -> AgentId

Source

fn name(&self) -> &str

Source

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…).

Implementors§