Integrate Mem0’s memory capabilities with OpenAI’s Inbuilt Tools to create AI agents with persistent memory.Documentation Index
Fetch the complete documentation index at: https://docs.mem0.ai/llms.txt
Use this file to discover all available pages before exploring further.
Getting Started
Installation
Environment Setup
Save your Mem0 and OpenAI API keys in a.env file:
Configuration
Adding Memories
Store user preferences, past interactions, or any relevant information:Retrieving Memories
Search for relevant memories based on the current user input:Structured Responses with Zod
Define structured response schemas to get consistent output formats:Using Web Search
Combine memory with web search for up-to-date recommendations:Examples
Complete Car Recommendation System
Responses
Resources
Agents SDK Tool with Mem0
Extend the OpenAI Agents SDK with Mem0 integration capabilities.
Control Memory Ingestion
Fine-tune what memories get stored during tool calls.