pub async fn detect_memories_smart(
text: &str,
session_id: Option<&str>,
extractor: Option<&dyn MemoryExtractor>,
) -> Vec<MemoryEntry>Expand description
Smart memory detection that chooses the best method based on environment. Uses AI when MEMORY_AI_DETECTION=always and extractor is provided. Otherwise falls back to rule-based detection.