pub struct PreProcessHook { /* private fields */ }Expand description
Pre-processing hook for trigger detection
Implementations§
Source§impl PreProcessHook
impl PreProcessHook
Sourcepub fn process(&self, message: &str) -> ProcessResult
pub fn process(&self, message: &str) -> ProcessResult
Process user message and detect triggers
Sourcepub fn add_skill(&mut self, skill: SkillPattern)
pub fn add_skill(&mut self, skill: SkillPattern)
Add a custom skill pattern
Sourcepub fn add_workflow(&mut self, workflow: WorkflowTrigger)
pub fn add_workflow(&mut self, workflow: WorkflowTrigger)
Add a custom workflow trigger
Sourcepub fn with_confidence_threshold(self, threshold: f32) -> Self
pub fn with_confidence_threshold(self, threshold: f32) -> Self
Set confidence threshold
Sourcepub fn has_skill_intent(&self, message: &str) -> bool
pub fn has_skill_intent(&self, message: &str) -> bool
Check if message contains skill-like patterns (for heuristics)
Sourcepub fn has_workflow_intent(&self, message: &str) -> bool
pub fn has_workflow_intent(&self, message: &str) -> bool
Check if message contains workflow-like patterns (multiple steps)
Sourcepub fn list_skills(&self) -> Vec<&str>
pub fn list_skills(&self) -> Vec<&str>
Get all registered skills
Sourcepub fn list_workflows(&self) -> Vec<&str>
pub fn list_workflows(&self) -> Vec<&str>
Get all registered workflows
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreProcessHook
impl RefUnwindSafe for PreProcessHook
impl Send for PreProcessHook
impl Sync for PreProcessHook
impl Unpin for PreProcessHook
impl UnsafeUnpin for PreProcessHook
impl UnwindSafe for PreProcessHook
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