Learn how to give your agents long-term, reflective memory using Mem0.
create_memories
: Adds new information.recall_memories
: Retrieves existing information.update_memories
: Corrects or changes existing information.delete_memories
: Removes information.recall_memories
and create_memories
tools:
recall_memories
: Same as above, for reading.manage_memories
: A single tool that handles creating, updating, and deleting memories in one atomic action.manage_memories
tool can accept lists of creations, updates, and deletions, and then send corresponding events to Inngest.
manage_memories
tool is a perfect fit for a multi-agent network, where a dedicated “Memory Updater” agent has the single, clear responsibility of calling this tool at the end of a conversation - only running once with a tool that can emit many events / memory operations.
recall_memories
tool.manage_memories
tool to perform all necessary creations, updates, and deletions in one go.callCount
, you can use the network state to create more flexible and explicit routing logic. This is powerful when different agents have different memory needs.
onStart
: Fetch memories before an agent runs and inject them into the prompt.onFinish
: Analyze the conversation after an agent has run and schedule memory updates.