๐—”๐—œ ๐—”๐—ด๐—ฒ๐—ป๐˜โ€™๐˜€ ๐— ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜† is the most important piece of ๐—–๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด, this is how we define it ๐Ÿ‘‡ In general, the memory for an agent is something that we provide via context in the prompt passed to LLM that helps the agent to better plan and react given past interactions or data not immediately available. It is useful to group the memory into four types: ๐Ÿญ. ๐—˜๐—ฝ๐—ถ๐˜€๐—ผ๐—ฑ๐—ถ๐—ฐ - This type of memory contains past interactions and actions performed by the agent. After an action is taken, the application controlling the agent would store the action in some kind of persistent storage so that it can be retrieved later if needed. A good example would be using a vector Database to store semantic meaning of the interactions. ๐Ÿฎ. ๐—ฆ๐—ฒ๐—บ๐—ฎ๐—ป๐˜๐—ถ๐—ฐ - Any external information that is available to the agent and any knowledge the agent should have about itself. You can think of this as a context similar to one used in RAG applications. It can be internal knowledge only available to the agent or a grounding context to isolate part of the internet scale data for more accurate answers. ๐Ÿฏ. ๐—ฃ๐—ฟ๐—ผ๐—ฐ๐—ฒ๐—ฑ๐˜‚๐—ฟ๐—ฎ๐—น - This is systemic information like the structure of the System Prompt, available tools, guardrails etc. It will usually be stored in Git, Prompt and Tool Registries. ๐Ÿฐ. Occasionally, the agent application would pull information from long-term memory and store it locally if it is needed for the task at hand. ๐Ÿฑ. All of the information pulled together from the long-term or stored in local memory is called short-term or working memory. Compiling all of it into a prompt will produce the prompt to be passed to the LLM and it will provide further actions to be taken by the system. We usually label 1. - 3. as Long-Term memory and 5. as Short-Term memory. And that is it! The rest is all about how you architect the topology of your Agentic Systems. Any war stories you have while managing Agentโ€™s memory? Let me know in the comments ๐Ÿ‘‡ #AI #LLM #MachineLearning
Replying to @Aurimas_Gr
This thought might look interesting

Nov 3, 2025 ยท 7:11 PM UTC

1
0