--- title: "Memory: Concepts" description: "Designing recall systems with scope boundaries and state-vs-memory separation." icon: "database" mode: "wide" --- ## When to use memory - You need semantic recall across runs. - You need long-term context outside immediate flow state. ## When to use state instead - Data is only needed for current control flow. - Data must remain deterministic and explicit per step. ## Canonical links - Reference: [/en/ai/memory/reference](/en/ai/memory/reference) - Patterns: [/en/ai/memory/patterns](/en/ai/memory/patterns) - Troubleshooting: [/en/ai/memory/troubleshooting](/en/ai/memory/troubleshooting) - Examples: [/en/ai/memory/examples](/en/ai/memory/examples) - Existing docs: [/en/concepts/memory](/en/concepts/memory)