add_memory
Store a text memory locally in Mem0, optionally using LLM fact extraction when infer is enabled.
Instructions
Store a memory in the local OSS Mem0 store. By default the text is stored verbatim with no LLM call (offline, free). Set infer=true to run Mem0's LLM fact extraction (requires a configured LLM).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text content to remember. | |
| infer | No | If true, use the LLM to extract facts. Default false (raw storage). | |
| user_id | No | Scope the memory to a user. Defaults to 'default_user'. | |
| agent_id | No | Optionally scope the memory to an agent. | |
| metadata | No | Optional metadata attached to the memory. |