Skip to main content
Memory lets agents remember conversations and learn from past interactions. Without memory, every message is like starting fresh.

Quick Start

Just add memory=True to enable conversation memory.

Types of Memory

Short-Term

Remembers current chat

Long-Term

Persists across sessions

Knowledge

Access to documents

Memory Options

1

Basic Memory (Conversation)

2

Long-Term Memory (Persistent)

3

Knowledge Memory (Documents)


How Memory Works


Complete Example


Multi-Agent Memory

Agents can share memory or have private memory:

Best Practices

Start Simple

Use memory=True first, add complexity later

Be Specific

Tell the agent what to remember in instructions

Use Knowledge

For documents, use knowledge= not memory

Test Memory

Verify the agent remembers correctly

Next: Multi-Agent Systems

Learn how multiple agents work together.