Skip to content

Memory Types

Memonic organizes memory into five typed layers, each suited to different kinds of information.

TypeUse forExample
sessionCurrent conversation context”User just asked about pricing”
episodicPast events with timestamps”User ran into auth error on 2024-01-10”
semanticFacts and beliefs”User prefers dark mode”
skillLearned procedures”To deploy: run npm run deploy from the worker directory”
world-modelEnvironment model”Production DB is Neon PostgreSQL on us-east-1”
Terminal window
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"
}'
Terminal window
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
}'