pub fn write_memory( memories_dir: &Path, name: &str, content: &str, ) -> Result<()>
Write content to a memory file (creates directories if needed).