Skip to main content

build_existing_memory_dict

Function build_existing_memory_dict 

Source
pub fn build_existing_memory_dict(
    existing: &[(Uuid, String)],
) -> (Value, IdMapping)
Expand description

Build the “existing memory” dict that gets sent to the LLM for comparison. Maps each existing memory to an integer ID for stability.