Skip to main content

load_recent_memories

Function load_recent_memories 

Source
pub fn load_recent_memories() -> String
Expand description

Load recent memory files (last 3 days) to inject into the system prompt. Returns a formatted string ready for system prompt injection, or empty string. Cached for 60 seconds — DeepReflect only writes after 5+ minutes of idle, so a 60-second window never returns stale data during active sessions.