Memory Types
Memonic organizes memory into five typed layers, each suited to different kinds of information.
| Type | Use for | Example |
|---|---|---|
session | Current conversation context | ”User just asked about pricing” |
episodic | Past events with timestamps | ”User ran into auth error on 2024-01-10” |
semantic | Facts and beliefs | ”User prefers dark mode” |
skill | Learned procedures | ”To deploy: run npm run deploy from the worker directory” |
world-model | Environment model | ”Production DB is Neon PostgreSQL on us-east-1” |
Storing a typed memory
Section titled “Storing a typed memory”curl -X POST https://memonic.dev/api/memory/store \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "agentId": "agent-001", "memoryType": "skill", "content": "Run `npm test` from /worker to execute the test suite.", "key": "how-to-test" }'Recalling by type
Section titled “Recalling by type”curl -X POST https://memonic.dev/api/memory/recall \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "agentId": "agent-001", "query": "how do I run tests", "memoryType": "skill", "limit": 3 }'