pub struct MemoryPivotSkill {
pub min_confidence: f32,
pub k: usize,
}Expand description
general.memory_pivot — calls memory.lookup once confidence has
crossed min_confidence. Records the top hit as evidence; never
adjusts confidence on its own (memory is context, not a verdict).
Fields§
§min_confidence: f32§k: usizeTrait Implementations§
Source§impl Default for MemoryPivotSkill
impl Default for MemoryPivotSkill
Source§impl Skill for MemoryPivotSkill
impl Skill for MemoryPivotSkill
fn id(&self) -> &str
fn description(&self) -> &str
Source§fn applies(&self, ctx: &InvestigationContext) -> bool
fn applies(&self, ctx: &InvestigationContext) -> bool
Whether this skill is willing to run given the current context.
Default: always applicable. Specialist skills typically gate on
signal presence or evidence already collected.
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut InvestigationContext,
tools: &'life2 ToolRegistry,
) -> Pin<Box<dyn Future<Output = Result<SkillOutcome, KernelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut InvestigationContext,
tools: &'life2 ToolRegistry,
) -> Pin<Box<dyn Future<Output = Result<SkillOutcome, KernelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute the skill. Implementations may inspect and mutate
ctx
directly (appending evidence/signals) and/or return non-evidence
adjustments via SkillOutcome.Auto Trait Implementations§
impl Freeze for MemoryPivotSkill
impl RefUnwindSafe for MemoryPivotSkill
impl Send for MemoryPivotSkill
impl Sync for MemoryPivotSkill
impl Unpin for MemoryPivotSkill
impl UnsafeUnpin for MemoryPivotSkill
impl UnwindSafe for MemoryPivotSkill
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