pub struct AutoClassifier;Expand description
Automatic memory type classifier.
Uses pattern matching to infer memory types from content text.
Falls back to Fact when no specific type is detected.
Implementations§
Source§impl AutoClassifier
impl AutoClassifier
Sourcepub fn infer_memory_type(content: &str, _context: &str) -> MemoryType
pub fn infer_memory_type(content: &str, _context: &str) -> MemoryType
Classify a new memory entry from its content and optional context.
Returns the inferred MemoryType. Falls back to Fact if no
specific type can be determined.
Extract tags from content for search indexing.
Simple keyword extraction: split on whitespace, filter short words, take top N unique terms.
Auto Trait Implementations§
impl Freeze for AutoClassifier
impl RefUnwindSafe for AutoClassifier
impl Send for AutoClassifier
impl Sync for AutoClassifier
impl Unpin for AutoClassifier
impl UnsafeUnpin for AutoClassifier
impl UnwindSafe for AutoClassifier
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