Skip to main content

Installation

Set the API key

Usage

Your agent will be able to write and read from memory. Prompt engineering may be required to instruct the agent when it is important to write and read. Additionally, mem0 allows for a user_id parameter as part of the tool’s function call. One option is to tell the agent to pass in the appropriate user_id when calling the tool. Another option is to set the user_id in this tool via code.

Other storage options

Optionally, in src/tools/mem0.py, configure your storage: