Skip to main content

detect_memories_smart

Function detect_memories_smart 

Source
pub async fn detect_memories_smart(
    text: &str,
    session_id: Option<&str>,
    project_path: Option<&str>,
    extractor: Option<&AiMemoryExtractor>,
) -> Vec<MemoryEntry>
Expand description

Smart detection: AI-first with rule-based fallback.

Priority order:

  1. AI extraction (if text > 200 chars and extractor available)
  2. Rule-based fallback (if AI fails or text too short)