sagelearnai

Giving Agents Memory

LLMs are stateless: each call knows only what's in its context window. "Memory" is the set of techniques that decide what an agent remembers, where it's stored, and what gets pulled back into context at each step.

In this lesson

  • Kinds of memory
  • Short-term memory: managing the conversation
  • Long-term memory: remembering across sessions
  • Scratchpads and external state for long tasks
  • Memory pitfalls

This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.