import { MemMachineClient } from '@memmachine/client';
const memory = client.project({ org_id: 'org_1', project_id: 'proj_1' }).memory();
const results = await memory.search("What are the user's favorite colors?");
if (results.status === 200) {
// Accessing different "layers" of memory
const { short_term_memory, long_term_memory } = results.content.episodic_memory;
console.log(`Found ${short_term_memory.length} recent context clues.`);
console.log(`Summary: ${results.content.episodic_memory.episode_summary[0]}`);
// Accessing semantic knowledge
const knowledge = results.content.semantic_memory;
console.log(`Semantic Knowledge: ${knowledge.length} items found.`);
}