Refactor docs and fix get memories playground (#3527)

This commit is contained in:
Parshva Daftari
2025-10-01 23:10:27 +05:30
committed by GitHub
parent 517a266d74
commit e19b748ad0
18 changed files with 938 additions and 866 deletions
+34 -11
View File
@@ -6,26 +6,49 @@ iconType: "solid"
Mem0 provides a powerful set of APIs that allow you to integrate advanced memory management capabilities into your applications. Our APIs are designed to be intuitive, efficient, and scalable, enabling you to create, retrieve, update, and delete memories across various entities such as users, agents, apps, and runs.
## Key Features
## Quick Start Guide
- **Memory Management**: Add, retrieve, update, and delete memories with ease.
- **Entity-based Operations**: Perform operations on memories associated with specific users, agents, apps, or runs.
- **Advanced Search**: Utilize our search API to find relevant memories based on various criteria.
- **History Tracking**: Access the history of memory interactions for comprehensive analysis.
- **User Management**: Manage user entities and their associated memories.
Get started with Mem0 API in three simple steps:
1. **[Add Memories](/api-reference/memory/add-memories)** - Store information and context from user conversations
2. **[Search Memories](/api-reference/memory/v2-search-memories)** - Retrieve relevant memories based on queries
3. **[Get Memories](/api-reference/memory/v2-get-memories)** - Fetch all memories for a specific entity
### Common Operations
<CardGroup cols={2}>
<Card title="Add Memories" icon="plus" href="/api-reference/memory/add-memories">
Store new memories from conversations and interactions
</Card>
<Card title="Search Memories" icon="magnifying-glass" href="/api-reference/memory/v2-search-memories">
Find relevant memories using semantic search
</Card>
<Card title="Update Memory" icon="pen" href="/api-reference/memory/update-memory">
Modify existing memory content
</Card>
<Card title="Delete Memory" icon="trash" href="/api-reference/memory/delete-memory">
Remove specific memories or batch delete
</Card>
</CardGroup>
## API Structure
Our API is organized into several main categories:
1. **Memory APIs**: Core operations for managing individual memories and collections.
2. **Entities APIs**: Manage different entity types (users, agents, etc.) and their associated memories.
3. **Search API**: Advanced search functionality to retrieve relevant memories.
4. **History API**: Track and retrieve the history of memory interactions.
1. **[Memory APIs](#memory-apis)**: Core operations for managing individual memories and collections
2. **[Entities APIs](#entities-apis)**: Manage different entity types (users, agents, etc.) and their associated memories
3. **[Organizations APIs](#organizations-apis)**: Manage organizations and their members (optional)
4. **[Project APIs](#project-apis)**: Manage projects within organizations (optional)
## Authentication
All API requests require authentication using HTTP Basic Auth. Ensure you include your API key in the Authorization header of each request.
All API requests require authentication using Token-based authentication. Include your API key in the Authorization header:
```bash
Authorization: Token <your-api-key>
```
Get your API key from the [Mem0 Dashboard](https://app.mem0.ai/dashboard/api-keys).
## Organizations and projects (optional)
@@ -2,3 +2,11 @@
title: 'Add Memories'
openapi: post /v1/memories/
---
## Graph Memory
To enable graph-based memory relationships, pass the `enable_graph=True` parameter. This creates relationships between entities in your memories for more contextual retrieval.
<Note>
Learn more in the [Graph Memory documentation](/platform/features/graph-memory).
</Note>
@@ -1,4 +0,0 @@
---
title: 'Get Memories (v1 - Deprecated)'
openapi: get /v1/memories/
---
@@ -1,4 +0,0 @@
---
title: 'Search Memories (v1 - Deprecated)'
openapi: post /v1/memories/search/
---
@@ -63,3 +63,11 @@ memories = m.get_all(
)
```
</CodeGroup>
## Graph Memory
To retrieve memories with graph-based relationships, pass the `enable_graph=True` parameter. This includes relationship data in the response for more contextual results.
<Note>
Learn more in the [Graph Memory documentation](/platform/features/graph-memory).
</Note>
@@ -106,3 +106,11 @@ personal_memories = m.search(
)
```
</CodeGroup>
## Graph Memory
To retrieve memories with graph-based relationships, pass the `enable_graph=True` parameter. This includes relationship data in the response for more contextual results.
<Note>
Learn more in the [Graph Memory documentation](/platform/features/graph-memory).
</Note>
+23 -22
View File
@@ -251,34 +251,34 @@
"tab": "Examples",
"groups": [
{
"group": "💡 Examples",
"group": "\ud83d\udca1 Examples",
"icon": "lightbulb",
"pages": [
"examples",
"examples/aws_example",
"examples/aws_neptune_analytics_hybrid_store",
"examples/mem0-demo",
"examples/ai_companion_js",
"examples/collaborative-task-agent",
"examples/llamaindex-multiagent-learning-system",
"examples/personalized-search-tavily-mem0",
"examples/eliza_os",
"examples/mem0-mastra",
"examples/mem0-with-ollama",
"examples/personal-ai-tutor",
"examples/customer-support-agent",
"examples/personal-travel-assistant",
"examples/llama-index-mem0",
"examples/chrome-extension",
"examples/youtube-assistant",
"examples/memory-guided-content-writing",
"examples/multimodal-demo",
"examples/email_processing",
"examples/personalized-deep-research",
"examples/collaborative-task-agent",
"examples/llama-index-mem0",
"examples/llamaindex-multiagent-learning-system",
"examples/personalized-search-tavily-mem0",
"examples/mem0-agentic-tool",
"examples/openai-inbuilt-tools",
"examples/mem0-openai-voice-demo",
"examples/mem0-google-adk-healthcare-assistant",
"examples/email_processing",
"examples/youtube-assistant"
"examples/mem0-mastra",
"examples/eliza_os",
"examples/aws_example",
"examples/aws_neptune_analytics_hybrid_store"
]
}
]
@@ -547,33 +547,34 @@
"tab": "Examples",
"groups": [
{
"group": "💡 Examples",
"group": "\ud83d\udca1 Examples",
"icon": "lightbulb",
"pages": [
"v0x/examples/aws_example",
"v0x/examples/aws_neptune_analytics_hybrid_store",
"examples",
"v0x/examples/mem0-demo",
"v0x/examples/ai_companion_js",
"v0x/examples/collaborative-task-agent",
"v0x/examples/llamaindex-multiagent-learning-system",
"v0x/examples/personalized-search-tavily-mem0",
"v0x/examples/eliza_os",
"v0x/examples/mem0-mastra",
"v0x/examples/mem0-with-ollama",
"v0x/examples/personal-ai-tutor",
"v0x/examples/customer-support-agent",
"v0x/examples/personal-travel-assistant",
"v0x/examples/llama-index-mem0",
"v0x/examples/chrome-extension",
"v0x/examples/youtube-assistant",
"v0x/examples/memory-guided-content-writing",
"v0x/examples/multimodal-demo",
"v0x/examples/email_processing",
"v0x/examples/personalized-deep-research",
"v0x/examples/collaborative-task-agent",
"v0x/examples/llama-index-mem0",
"v0x/examples/llamaindex-multiagent-learning-system",
"v0x/examples/personalized-search-tavily-mem0",
"v0x/examples/mem0-agentic-tool",
"v0x/examples/openai-inbuilt-tools",
"v0x/examples/mem0-openai-voice-demo",
"v0x/examples/mem0-google-adk-healthcare-assistant",
"v0x/examples/email_processing",
"v0x/examples/youtube-assistant"
"v0x/examples/mem0-mastra",
"v0x/examples/eliza_os",
"v0x/examples/aws_example",
"v0x/examples/aws_neptune_analytics_hybrid_store"
]
}
]
+68 -40
View File
@@ -18,71 +18,99 @@ Here are some examples of how Mem0 can be integrated into various applications:
Explore how **Mem0** can power real-world applications and bring personalized, intelligent experiences to life:
<CardGroup cols={2}>
<Card title="Mem0 Demo" icon="rocket" href="/examples/mem0-demo">
Get started with **Mem0** with this simple demo showcasing basic memory operations.
</Card>
<Card title="AI Companion in Node.js" icon="node" href="/examples/ai_companion_js">
Build a personalized AI Companion in **Node.js** that remembers conversations and adapts over time using Mem0.
Build a personalized AI Companion in **Node.js** that remembers conversations and adapts over time.
</Card>
<Card title="Mem0 with Ollama" icon="server" href="/examples/mem0-with-ollama">
Run **Mem0 locally** with **Ollama** to create private, stateful AI experiences without relying on cloud APIs.
Run **Mem0 locally** with **Ollama** to create private, stateful AI experiences without cloud APIs.
</Card>
<Card title="Personal AI Tutor" icon="graduation-cap" href="/examples/personal-ai-tutor">
Create an **AI Tutor** that adapts to student progress, learning style, and history — for a truly customized learning experience.
</Card>
<Card title="Personal Travel Assistant" icon="plane" href="/examples/personal-travel-assistant">
Develop a **Personal Travel Assistant** that remembers your preferences, past trips, and helps plan future adventures.
Create an **AI Tutor** that adapts to student progress, learning style, and history.
</Card>
<Card title="Customer Support Agent" icon="headset" href="/examples/customer-support-agent">
Build a **Customer Support AI** that recalls user preferences, past chats, and provides context-aware, efficient help.
Build a **Customer Support AI** that recalls user preferences and past chats.
</Card>
<Card title="LlamaIndex + Mem0" icon="book-open" href="/examples/llama-index-mem0">
Combine **LlamaIndex** and Mem0 to create a powerful **ReAct Agent** with persistent memory for smarter interactions.
</Card>
<Card title="LlamaIndex + Mem0 Learning System" icon="book-open" href="/examples/llama-index-mem0">
Multi-agent learning system powered by memory.
<Card title="Personal Travel Assistant" icon="plane" href="/examples/personal-travel-assistant">
Develop a **Personal Travel Assistant** that remembers your preferences and past trips.
</Card>
<Card title="Chrome Extension" icon="puzzle-piece" href="/examples/chrome-extension">
Add **long-term memory** to ChatGPT, Claude, or Perplexity via the **Mem0 Chrome Extension** — personalize your AI chats anywhere.
Add **long-term memory** to ChatGPT, Claude, or Perplexity via the **Mem0 Chrome Extension**.
</Card>
<Card title="YouTube Assistant" icon="puzzle-piece" href="/examples/youtube-assistant">
Integrate **Mem0** into **YouTube's** native UI, providing personalized responses with video context.
<Card title="YouTube Assistant" icon="video" href="/examples/youtube-assistant">
Integrate **Mem0** into **YouTube's** native UI with personalized responses.
</Card>
<Card title="Memory-Guided Content Writing" icon="pen" href="/examples/memory-guided-content-writing">
Create a **Writing Assistant** that understands and adapts to your unique style, improving consistency and productivity.
Create a **Writing Assistant** that understands and adapts to your unique style.
</Card>
<Card title="Multimodal AI Demo" icon="image" href="/examples/multimodal-demo">
Supercharge AI with **Mem0's multimodal memory** — blend text, images, and more for richer, context-aware interactions.
</Card>
<Card title="Personalized Research Agent" icon="magnifying-glass" href="/examples/personalized-deep-research">
Build a **Deep Research AI** that remembers your research goals and compiles insights from vast information sources.
</Card>
<Card title="Mem0 as an Agentic Tool" icon="robot" href="/examples/mem0-agentic-tool">
Integrate Mem0's memory capabilities with OpenAI's Agents SDK to create AI agents with persistent memory.
</Card>
<Card title="OpenAI Inbuilt Tools" icon="robot" href="/examples/openai-inbuilt-tools">
Use Mem0's memory capabilities with OpenAI's Inbuilt Tools to create AI agents with persistent memory.
</Card>
<Card title="Mem0 OpenAI Voice Demo" icon="microphone" href="/examples/mem0-openai-voice-demo">
Use Mem0's memory capabilities with OpenAI's Inbuilt Tools to create AI agents with persistent memory.
</Card>
<Card title="Healthcare Assistant Google ADK" icon="microphone" href="/examples/mem0-google-adk-healthcare-assistant">
Build a personalized healthcare assistant with persistent memory using Google's ADK and Mem0.
Supercharge AI with **Mem0's multimodal memory** — blend text, images, and more.
</Card>
<Card title="Email Processing" icon="envelope" href="/examples/email_processing">
Use Mem0's memory capabilities to process emails and create AI agents with persistent memory.
Use Mem0's memory capabilities to process emails with persistent memory.
</Card>
<Card title="Personalized Research Agent" icon="magnifying-glass" href="/examples/personalized-deep-research">
Build a **Deep Research AI** that remembers your research goals.
</Card>
<Card title="Multi-User Collaboration" icon="users" href="/examples/collaborative-task-agent">
Build collaborative agents with shared memory across multiple users.
</Card>
<Card title="LlamaIndex ReAct Agent" icon="book-open" href="/examples/llama-index-mem0">
Combine **LlamaIndex** and Mem0 to create a **ReAct Agent** with persistent memory.
</Card>
<Card title="LlamaIndex Multi-Agent System" icon="book-open" href="/examples/llamaindex-multiagent-learning-system">
Multi-agent learning system powered by memory.
</Card>
<Card title="Personalized Search with Tavily" icon="search" href="/examples/personalized-search-tavily-mem0">
Build a personalized search experience using Mem0 and Tavily.
</Card>
<Card title="Mem0 as an Agentic Tool" icon="robot" href="/examples/mem0-agentic-tool">
Integrate Mem0's memory capabilities with OpenAI's Agents SDK.
</Card>
<Card title="OpenAI Inbuilt Tools" icon="wrench" href="/examples/openai-inbuilt-tools">
Use Mem0 with OpenAI's Inbuilt Tools to create AI agents with persistent memory.
</Card>
<Card title="OpenAI Voice Demo" icon="microphone" href="/examples/mem0-openai-voice-demo">
Voice-enabled AI agents with persistent memory using OpenAI.
</Card>
<Card title="Healthcare Assistant with Google ADK" icon="heart-pulse" href="/examples/mem0-google-adk-healthcare-assistant">
Build a personalized healthcare assistant with persistent memory using Google ADK.
</Card>
<Card title="Mem0 with Mastra" icon="wand-magic-sparkles" href="/examples/mem0-mastra">
Integrate Mem0 with Mastra for powerful agentic workflows.
</Card>
<Card title="Eliza OS Character" icon="comment" href="/examples/eliza_os">
Build conversational AI characters with persistent memory using Eliza OS.
</Card>
<Card title="AWS Bedrock Example" icon="aws" href="/examples/aws_example">
Use Mem0 with **AWS Bedrock**, **OpenSearch**, and **Neptune Analytics**.
</Card>
<Card title="AWS Neptune Analytics" icon="aws" href="/examples/aws_neptune_analytics_hybrid_store">
Hybrid memory store with **AWS Neptune Analytics** and Bedrock.
</Card>
</CardGroup>
+1 -1
View File
@@ -1,5 +1,5 @@
---
title: "AWS bedrock, OpenSearch and Neptune Analytics"
title: "AWS Bedrock Example"
---
This example demonstrates how to configure and use the `mem0ai` SDK with **AWS Bedrock**, **OpenSearch Service (AOSS)**, and **AWS Neptune Analytics** for persistent memory capabilities in Python.
@@ -1,5 +1,5 @@
---
title: "Neptune Analytics Hybrid Store"
title: "AWS Neptune Analytics"
---
This example demonstrates how to configure and use the `mem0ai` SDK with **AWS Bedrock** and **AWS Neptune Analytics** for persistent memory capabilities in Python.
@@ -1,5 +1,5 @@
---
title: 'Personalized Search with Mem0 and Tavily'
title: 'Personalized Search with Tavily'
---
<Snippet file="security-compliance.mdx" />
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: Google Agent Development Kit
title: Google ADK
---
Integrate [**Mem0**](https://github.com/mem0ai/mem0) with [Google Agent Development Kit (ADK)](https://github.com/google/adk-python), an open-source framework for building multi-agent workflows. This integration enables agents to access persistent memory across conversations, enhancing context retention and personalization.
Integrate [**Mem0**](https://github.com/mem0ai/mem0) with [Google ADK (Agent Development Kit)](https://github.com/google/adk-python), an open-source framework for building multi-agent workflows. This integration enables agents to access persistent memory across conversations, enhancing context retention and personalization.
## Overview
+4
View File
@@ -4,6 +4,10 @@ icon: "book"
iconType: "solid"
---
<Info>
**Mem0 v1.0.0 Beta is here!** Check out our [research paper](https://mem0.ai/research) to learn about the technical foundations and innovations behind Mem0's memory architecture.
</Info>
Mem0 is a memory layer designed for modern AI agents. It acts as a persistent memory layer that agents can use to:
- Recall relevant past interactions
+141 -141
View File
@@ -329,7 +329,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/v1/entities/{entity_type}/{entity_id}/\"\n\nheaders = {\"Authorization\": \"<api-key>\"}\n\nresponse = requests.request(\"DELETE\", url, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/v1/entities/{entity_type}/{entity_id}/\"\n\nheaders = {\"Authorization\": \"Token <api-key>\"}\n\nresponse = requests.request(\"DELETE\", url, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -1100,137 +1100,16 @@
],
"description": "Get all memories.",
"operationId": "memories_list_v2",
"parameters": [
{
"name": "filters",
"in": "query",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"user_id": {
"type": "string"
},
"agent_id": {
"type": "string"
},
"app_id": {
"type": "string"
},
"run_id": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"categories": {
"type": "object",
"properties": {
"in": {
"type": "array",
"items": {
"type": "string"
}
"$ref": "#/components/schemas/MemoryGetInputV2"
}
}
},
"metadata": {
"type": "object"
"required": true
},
"keywords": {
"type": "object",
"properties": {
"contains": {
"type": "string"
},
"icontains": {
"type": "string"
}
}
}
},
"additionalProperties": {
"type": "object",
"properties": {
"in": {
"type": "array"
},
"gte": {
"type": "string"
},
"lte": {
"type": "string"
},
"gt": {
"type": "string"
},
"lt": {
"type": "string"
},
"ne": {
"type": "string"
},
"contains": {
"type": "string"
},
"icontains": {
"type": "string"
}
}
}
},
"description": "Filters to apply to the memories. Available fields are: user_id, agent_id, app_id, run_id, created_at, updated_at, categories, keywords. Supports logical operators (AND, OR) and comparison operators (in, gte, lte, gt, lt, ne, contains, icontains). For categories field, use 'contains' for partial matching (e.g., {\"categories\": {\"contains\": \"finance\"}}) or 'in' for exact matching (e.g., {\"categories\": {\"in\": [\"personal_information\"]}}).",
"style": "deepObject",
"explode": true
},
{
"name": "fields",
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "A list of field names to include in the response. If not provided, all fields will be returned."
},
{
"name": "org_id",
"in": "query",
"schema": {
"type": "string"
},
"description": "Filter memories by organization ID."
},
{
"name": "project_id",
"in": "query",
"schema": {
"type": "string"
},
"description": "Filter memories by project ID."
},
{
"name": "page",
"in": "query",
"schema": {
"type": "integer"
},
"description": "Page number for pagination. Default: 1."
},
{
"name": "page_size",
"in": "query",
"schema": {
"type": "integer"
},
"description": "Number of items per page. Default: 100."
}
],
"responses": {
"200": {
"description": "Successfully retrieved memories.",
@@ -2357,7 +2236,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/\"\n\nheaders = {\"Authorization\": \"<api-key>\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/\"\n\nheaders = {\"Authorization\": \"Token <api-key>\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -2454,7 +2333,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/\"\n\npayload = {\"name\": \"<string>\"}\nheaders = {\n \"Authorization\": \"<api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/\"\n\npayload = {\"name\": \"<string>\"}\nheaders = {\n \"Authorization\": \"Token <api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -2685,7 +2564,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/\"\n\nheaders = {\"Authorization\": \"<api-key>\"}\n\nresponse = requests.request(\"DELETE\", url, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/\"\n\nheaders = {\"Authorization\": \"Token <api-key>\"}\n\nresponse = requests.request(\"DELETE\", url, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -2779,7 +2658,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/members/\"\n\nheaders = {\"Authorization\": \"<api-key>\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/members/\"\n\nheaders = {\"Authorization\": \"Token <api-key>\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -2904,7 +2783,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/members/\"\n\npayload = {\n \"email\": \"<string>\",\n \"role\": \"<string>\"\n}\nheaders = {\n \"Authorization\": \"<api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"PUT\", url, json=payload, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/members/\"\n\npayload = {\n \"email\": \"<string>\",\n \"role\": \"<string>\"\n}\nheaders = {\n \"Authorization\": \"Token <api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"PUT\", url, json=payload, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -3029,7 +2908,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/members/\"\n\npayload = {\n \"email\": \"<string>\",\n \"role\": \"<string>\"\n}\nheaders = {\n \"Authorization\": \"<api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/members/\"\n\npayload = {\n \"email\": \"<string>\",\n \"role\": \"<string>\"\n}\nheaders = {\n \"Authorization\": \"Token <api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -3126,7 +3005,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/members/\"\n\npayload = {\"email\": \"<string>\"}\nheaders = {\n \"Authorization\": \"<api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"DELETE\", url, json=payload, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/members/\"\n\npayload = {\"email\": \"<string>\"}\nheaders = {\n \"Authorization\": \"Token <api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"DELETE\", url, json=payload, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -3233,7 +3112,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/\"\n\nheaders = {\"Authorization\": \"<api-key>\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/\"\n\nheaders = {\"Authorization\": \"Token <api-key>\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -3352,7 +3231,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/\"\n\npayload = {\"name\": \"<string>\"}\nheaders = {\n \"Authorization\": \"<api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/\"\n\npayload = {\"name\": \"<string>\"}\nheaders = {\n \"Authorization\": \"Token <api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -3706,7 +3585,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/\"\n\nheaders = {\"Authorization\": \"<api-key>\"}\n\nresponse = requests.request(\"DELETE\", url, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/\"\n\nheaders = {\"Authorization\": \"Token <api-key>\"}\n\nresponse = requests.request(\"DELETE\", url, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -3806,7 +3685,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/\"\n\nheaders = {\"Authorization\": \"<api-key>\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/\"\n\nheaders = {\"Authorization\": \"Token <api-key>\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -3934,7 +3813,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/\"\n\npayload = {\n \"email\": \"<string>\",\n \"role\": \"<string>\"\n}\nheaders = {\n \"Authorization\": \"<api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/\"\n\npayload = {\n \"email\": \"<string>\",\n \"role\": \"<string>\"\n}\nheaders = {\n \"Authorization\": \"Token <api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -4062,7 +3941,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/\"\n\npayload = {\n \"email\": \"<string>\",\n \"role\": \"<string>\"\n}\nheaders = {\n \"Authorization\": \"<api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"PUT\", url, json=payload, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/\"\n\npayload = {\n \"email\": \"<string>\",\n \"role\": \"<string>\"\n}\nheaders = {\n \"Authorization\": \"Token <api-key>\",\n \"Content-Type\": \"application/json\"\n}\n\nresponse = requests.request(\"PUT\", url, json=payload, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -4174,7 +4053,7 @@
"x-code-samples": [
{
"lang": "Python",
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/\"\n\nheaders = {\"Authorization\": \"<api-key>\"}\n\nresponse = requests.request(\"DELETE\", url, headers=headers)\n\nprint(response.text)"
"source": "import requests\n\nurl = \"https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/\"\n\nheaders = {\"Authorization\": \"Token <api-key>\"}\n\nresponse = requests.request(\"DELETE\", url, headers=headers)\n\nprint(response.text)"
},
{
"lang": "JavaScript",
@@ -5329,6 +5208,127 @@
}
}
},
"MemoryGetInputV2": {
"type": "object",
"required": [
"filters"
],
"properties": {
"filters": {
"title": "Filters",
"type": "object",
"description": "A dictionary of filters to apply to retrieve memories. Available fields are: user_id, agent_id, app_id, run_id, created_at, updated_at, categories, keywords. Supports logical operators (AND, OR) and comparison operators (in, gte, lte, gt, lt, ne, contains, icontains, *). For categories field, use 'contains' for partial matching (e.g., {\"categories\": {\"contains\": \"finance\"}}) or 'in' for exact matching (e.g., {\"categories\": {\"in\": [\"personal_information\"]}}).",
"properties": {
"user_id": {
"type": "string"
},
"agent_id": {
"type": "string"
},
"app_id": {
"type": "string"
},
"run_id": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"keywords": {
"type": "object",
"properties": {
"contains": {
"type": "string"
},
"icontains": {
"type": "string"
}
}
},
"categories": {
"type": "object",
"properties": {
"in": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"metadata": {
"type": "object"
}
},
"additionalProperties": {
"type": "object",
"properties": {
"in": {
"type": "array"
},
"gte": {
"type": "string"
},
"lte": {
"type": "string"
},
"gt": {
"type": "string"
},
"lt": {
"type": "string"
},
"ne": {
"type": "string"
},
"contains": {
"type": "string"
},
"icontains": {
"type": "string"
}
}
}
},
"fields": {
"title": "Fields",
"type": "array",
"items": {
"type": "string"
},
"description": "A list of field names to include in the response. If not provided, all fields will be returned."
},
"page": {
"title": "Page",
"type": "integer",
"default": 1,
"description": "Page number for pagination. Default: 1"
},
"page_size": {
"title": "Page Size",
"type": "integer",
"default": 100,
"description": "Number of items per page. Default: 100"
},
"org_id": {
"title": "Organization id",
"type": "string",
"nullable": true,
"description": "The unique identifier of the organization associated with the memory."
},
"project_id": {
"title": "Project id",
"type": "string",
"nullable": true,
"description": "The unique identifier of the project associated with the memory."
}
}
},
"CreateRun": {
"required": [
"run_id"
+1 -1
View File
@@ -1,5 +1,5 @@
---
title: "AWS bedrock, OpenSearch and Neptune Analytics"
title: "AWS Bedrock Example"
---
This example demonstrates how to configure and use the `mem0ai` SDK with **AWS Bedrock**, **OpenSearch Service (AOSS)**, and **AWS Neptune Analytics** for persistent memory capabilities in Python.
@@ -1,5 +1,5 @@
---
title: "Neptune Analytics Hybrid Store"
title: "AWS Neptune Analytics"
---
This example demonstrates how to configure and use the `mem0ai` SDK with **AWS Bedrock** and **AWS Neptune Analytics** for persistent memory capabilities in Python.
@@ -1,5 +1,5 @@
---
title: 'Personalized Search with Mem0 and Tavily'
title: 'Personalized Search with Tavily'
---
<Snippet file="security-compliance.mdx" />
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: Google Agent Development Kit
title: Google ADK
---
Integrate [**Mem0**](https://github.com/mem0ai/mem0) with [Google Agent Development Kit (ADK)](https://github.com/google/adk-python), an open-source framework for building multi-agent workflows. This integration enables agents to access persistent memory across conversations, enhancing context retention and personalization.
Integrate [**Mem0**](https://github.com/mem0ai/mem0) with [Google ADK (Agent Development Kit)](https://github.com/google/adk-python), an open-source framework for building multi-agent workflows. This integration enables agents to access persistent memory across conversations, enhancing context retention and personalization.
## Overview