| Example | Description |
|---|---|
| Agent With Persistent Memory | Use persistent memory with an Agent. |
| Memory Tools With Web Search | Use MemoryTools alongside WebSearchTools so an agent can store and use user memory while planning a trip. |
| Agentic Memory Management | Use agentic memory with an Agent. |
| Agents Sharing Memory | Two agents sharing the same user memory. |
| Custom Memory Manager Configuration | Configure a MemoryManager separately from the Agent and apply custom memory capture instructions. |
| Multi-User Multi-Session Chat | A multi-user, multi-session chat flow where user memory is shared across sessions for the same user. |
| Concurrent Multi-User Multi-Session Chat | Run three user conversations concurrently with asyncio.gather while a shared agent persists user memories across sessions. |
| Share Memory and History Between Agents | Two agents sharing both conversation history and user memory through a common database, user ID, and session ID. |
| Memory Manager | The Memory Manager handles user memory CRUD and retrieval operations. |
| Optimize Memories | This directory demonstrates memory optimization strategies. |
Memory
Memory
Examples of persisting user memories in a database and sharing them across runs, sessions, and multiple agents.