Why it matters

Memory unlocks 'agents that know me' experiences. Understanding enables real personalization.

Advertisement

The architecture

MemoryService interface: add_session_to_memory, search_memory.

VertexAiRagMemoryService: RAG-backed semantic memory. Retrieves relevant past info per query.

ADK memory flowEnd of sessionadd to memoryNew session startsearch memoryRetrieved factsinject into contextSemantic search via embeddings; retrieved facts augment agent's context
Memory read/write.
Advertisement

How it works end to end

InMemoryMemoryService: dev fallback.

Custom backend: MemoryService interface for custom stores (Redis, Pinecone).

Curation: not all conversation content belongs in memory; be selective.

Privacy: retain only what's needed; support deletion.