Skip to content
Book a conversation

Agent memory

Understand how agents can retain and retrieve information without confusing memory with session state or infallible knowledge.

Luiz GardelinUpdated Read in Markdown
All terms

A conversation about your organization.

Before recommending any tool, we talk with your teams and map how the work really happens.

Arrange a conversation
On this pageIntroduction

Also used as: AI agent memory.

Agent memory is a mechanism for retaining or retrieving information that may be useful in later interactions. The name does not describe human recollection or, by itself, define what is stored or for how long. In Google ADK, the memory service acts as a searchable collection that may contain information from earlier conversations or other sources. This is one possible implementation of the concept. Google ADK, memory and long-term knowledge.

Storage and retrieval are different operations. Information must enter the memory mechanism and later be found when relevant. In ADK documentation, an application can add information, and an agent can search the collection through a tool. Retrieved results then enter the context used for a response. Recording a conversation does not mean that every detail will be retrieved for every request. Google ADK, how memory works.

In a hypothetical example, a team records a department's preference for receiving reports in a particular format. During a new request, an agent could retrieve that preference while preparing the document. If the rule has changed, reusing the old information without checking its validity would produce an unsuitable report. The example shows why origin, date, and a correction mechanism should accompany the decision to retain information.

What persistence actually tells you

A session and its state track an interaction. Searchable memory may span several interactions, depending on the solution. However, ADK itself documents a memory service that does not survive a restart, alongside persistent alternatives. The word memory therefore does not establish durable retention. Google ADK, memory options. State scope can also vary between session, user, and application in that library. Google ADK, state scope.

For the hypothetical report, the team must define who may save a preference, whom it applies to, and when it can be replaced. An individual's observation should not become an institutional rule simply because it was stored. Memory supplies information for a decision; its presence does not prove that the information is current, authorized, or agreed by everyone involved. Those distinctions matter whenever a retained detail influences work beyond the conversation where it originated.

Sources

  1. Memory: Long-term knowledge with MemoryService Google ADK

    Distinguishes searchable memory from the current interaction and presents options with and without persistence across restarts.

  2. State: The Session’s Scratchpad Google ADK

    ADK state holds key-value pairs with distinct scopes; persistence depends on the selected service.

Written by

Luiz Gardelin

Founder and lead consultant at The Company Brain

Luiz Gardelin is the founder and lead consultant at The Company Brain, an AI organizational transformation consultancy based in Brazil. He also founded Webinhood and Tropk.ai.

See all content by this author

A conversation about your organization.

Before recommending any tool, we talk with your teams and map how the work really happens.

Arrange a conversation

Related terms

Continue reading

All resources