Skip to main content
Memory is a part of the Agent’s context that helps it provide the best, most personalized response.
If the user tells the Agent they like to ski, then future responses can reference this information to provide a more personalized experience.

User Memories

Here’s a simple example of using Memory in an Agent.
memory_demo.py
enable_agentic_memory=True gives the Agent a tool to manage memories of the user, this tool passes the task to the MemoryManager class. You may also set update_memory_on_run=True which always runs the MemoryManager after each user message.
Read more about Memory in the Memory Overview page.

Developer Resources