Skip to main content

detect

Function detect 

Source
pub fn detect(
    new_summary: &str,
    new_memory_type: &str,
    existing: &[(String, MemoryRecord)],
) -> Vec<ContradictionHit>
Expand description

Detect contradictions between a new memory’s summary and existing records. Only checks records with the same memory_type and active states (Accepted/Canonical). Returns empty vec when no contradictions found.