Overview
| Aspect | Details |
|---|---|
| Data Type | Unstructured text observations |
| Scope | Per user (identified by user_id) |
| Persistence | Long-term (with optional curation) |
| Default Mode | ALWAYS |
| Supported Modes | ALWAYS, AGENTIC |
Basic Usage
ALWAYS Mode (Default)
Memories are extracted automatically after each conversation:AGENTIC Mode
The agent gets tools to manage memories explicitly:save_user_memory- Store a new observationdelete_user_memory- Remove an outdated memory
What Gets Captured
User Memory is designed for observations that don’t fit structured fields:| Good for User Memory | Better for User Profile |
|---|---|
| ”Prefers detailed explanations” | Name: “Alice Chen" |
| "Working on ML project” | Company: “Acme Corp" |
| "Struggles with async code” | Role: “Data Scientist" |
| "Uses VS Code” | Timezone: “PST" |
| "Morning person” | Plan: “Enterprise” |
Memory Data Model
Each memory contains:| Field | Type | Description |
|---|---|---|
memory_id | str | Unique identifier |
memory | str | The observation text |
topics | list | Extracted topics for categorization |
user_id | str | User this memory belongs to |
created_at | datetime | When the memory was created |
updated_at | datetime | Last update timestamp |