mem0 Memory System

add_memory

Store and associate text-based memories in the mem0 Memory System by providing content, user ID, and optional metadata, agent ID, or session ID for enhanced organization and retrieval.

Instructions

Stores a piece of text as a memory in Mem0.

Input Schema

NameRequiredDescriptionDefault
agentIdNoOptional agent ID to associate with the memory (for cloud API).
contentYesThe text content to store as memory.
metadataNoOptional key-value metadata.
sessionIdNoOptional session ID to associate with the memory.
userIdYesUser ID to associate with the memory.

Input Schema (JSON Schema)

{ "properties": { "agentId": { "description": "Optional agent ID to associate with the memory (for cloud API).", "type": "string" }, "content": { "description": "The text content to store as memory.", "type": "string" }, "metadata": { "description": "Optional key-value metadata.", "type": "object" }, "sessionId": { "description": "Optional session ID to associate with the memory.", "type": "string" }, "userId": { "description": "User ID to associate with the memory.", "type": "string" } }, "required": [ "content", "userId" ], "type": "object" }

You must be authenticated.

Other Tools from mem0 Memory System

Related Tools

ID: fd4ya2uyoa