Introduction to Context Management and Agent Memory
Managing context accumulation, retrieval, injection and compaction in single agents and between agents, and designing single-agent and multi-agent memory with security, compliance, lifecycle, storage and session management.
- 4 lessons
- Module quiz
Agents accumulate context with every step: messages, tool results and retrieved documents. Without management, the context window fills, costs rise and the agent loses track of what matters. Context management decides what is retrieved, injected, kept and compacted.
Memory extends beyond a single session, so agents can remember users' preferences and earlier work. Memory must be scoped to the right user and tenant, protected, and deleted when required, in single-agent and multi-agent designs alike.
What the exam expects
Questions test context accumulation and injection, the order of compaction techniques, Foundry memory stores, scoping memory from the authenticated token rather than prompt content, restricting which agents can write shared memory, and deletion across all stores.
How this module is organized
Managing Context Accumulation with Retrieval and Injection explains how context is built. Compacting Context Without Losing Important Facts explains how it is reduced. Choosing Memory Strategies for Single Agents and Agent Teams explains memory design, and Securing Memory and Managing Its Compliance and Lifecycle explains its protection.
- Managing Context Accumulation with Retrieval and Injection Lesson 1
- Compacting Context Without Losing Important Facts Lesson 2
- Choosing Memory Strategies for Single Agents and Agent Teams Lesson 3
- Securing Memory and Managing Its Compliance and Lifecycle Lesson 4
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 5 questions