Context Packs
A Context Pack is the fundamental storage unit for agent memories. It groups related memories into a named, typed container that agents query when they need relevant background knowledge before responding or acting.Three-Layer Architecture
Context Packs use a three-layer structure that balances retrieval speed with information depth:Two-Phase Query Model
Agents retrieve context through a two-phase process that avoids loading unnecessary detail:1
Phase 1: Discover
Query Context Pack summaries to find relevant packs. Returns pack IDs, topic descriptions, and match scores. Fast, only summary layer is read.
2
Phase 2: Retrieve
For matched packs, retrieve specific memories using semantic search within the pack’s content layer. Returns ranked memory records with scores.
Context Pack Types
Memory Record Schema
Each memory stored in a Context Pack has the following structure:Managing Context Packs via API
List Packs
Create a Pack
Query a Pack (Phase 2 retrieval)
Degradation Tiers
Memories in Context Packs degrade gracefully over time when not accessed:
Any retrieval access re-promotes a memory to the full tier. This ensures frequently-used memories remain fully detailed while inactive memories are progressively compressed.
Related
Memory Service
Overview of the memory system and API usage.
Memory Integration Guide
Step-by-step guide to adding memory to your agents.

