pub struct RuleBasedExtractor { /* private fields */ }Expand description
Deterministic rule-based episode extractor (no LLM/provider dependency).
Applies simple heuristics to identify memory-worthy content from session episodes. Suitable for offline testing and as a baseline extractor.
Implementations§
Source§impl RuleBasedExtractor
impl RuleBasedExtractor
Sourcepub fn with_max_candidates(max: usize) -> Self
pub fn with_max_candidates(max: usize) -> Self
Create a new extractor with a custom candidate limit.
Trait Implementations§
Source§impl Default for RuleBasedExtractor
impl Default for RuleBasedExtractor
Source§impl EpisodeExtractor for RuleBasedExtractor
impl EpisodeExtractor for RuleBasedExtractor
Source§fn extract(&self, episodes: &[SessionEpisode]) -> Vec<MemoryCandidate>
fn extract(&self, episodes: &[SessionEpisode]) -> Vec<MemoryCandidate>
Extract memory candidates from a slice of session episodes.
Auto Trait Implementations§
impl Forget for RuleBasedExtractor
impl Freeze for RuleBasedExtractor
impl Move for RuleBasedExtractor
impl RefUnwindSafe for RuleBasedExtractor
impl Send for RuleBasedExtractor
impl Sync for RuleBasedExtractor
impl Unpin for RuleBasedExtractor
impl UnsafeUnpin for RuleBasedExtractor
impl UnwindSafe for RuleBasedExtractor
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