add_memory
Store durable facts, preferences, or exchanges in long-term memory for later recall. Use when learning something worth keeping or when the user explicitly asks to remember.
Instructions
Store a new memory (a fact, preference, or exchange) in long-term memory.
Use this automatically when you learn something durable about the user or project, or on explicit request ("remember that ..."). mem0 runs a server-side extraction to decide what is worth keeping, so not every call creates a stored entry.
The memory bucket is determined automatically from your authenticated identity; you cannot and need not specify whose memory to write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Message role to attribute the text to ("user" or "assistant"). | user |
| text | Yes | The content to remember. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||