pub struct GenericAgent {
pub short_circuit_on_conclude: bool,
/* private fields */
}Expand description
Default-shape agent built from a declared chain of skill ids and a
scoped tool registry. Specialist agents in Phase 5 are constructed
purely as different GenericAgent configurations — no new Agent
impls required.
Fields§
§short_circuit_on_conclude: boolIf true, stop the chain when a skill emits NextAction::Conclude
or NextAction::Discard. Default true.
Implementations§
Source§impl GenericAgent
impl GenericAgent
Trait Implementations§
Source§impl Agent for GenericAgent
impl Agent for GenericAgent
fn id(&self) -> AgentId
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,
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…).Auto Trait Implementations§
impl Freeze for GenericAgent
impl !RefUnwindSafe for GenericAgent
impl Send for GenericAgent
impl Sync for GenericAgent
impl Unpin for GenericAgent
impl UnsafeUnpin for GenericAgent
impl !UnwindSafe for GenericAgent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more