Overview
This page documents all API changes between Mem0 v0.x and v1.0 Beta, organized by component and method.Memory Class Changes
Constructor
v0.x
v1.0 Beta
add() Method
v0.x Signature
v1.0 Beta Signature
Changes Summary
Parameter | v0.x | v1.0 Beta | Change |
---|---|---|---|
messages | ✅ | ✅ | Unchanged |
user_id | ✅ | ✅ | Unchanged |
agent_id | ✅ | ✅ | Unchanged |
run_id | ✅ | ✅ | Unchanged |
metadata | ✅ | ✅ | Unchanged |
filters | ✅ | ✅ | Unchanged |
output_format | ✅ | ❌ | REMOVED |
version | ✅ | ❌ | REMOVED |
async_mode | ✅ | ❌ | REMOVED |
infer | ❌ | ✅ | NEW |
Response Format Changes
v0.x Response (variable format):search() Method
v0.x Signature
v1.0 Beta Signature
Enhanced Filtering
v0.x Filters (basic):get_all() Method
v0.x Signature
v1.0 Beta Signature
update() Method
No Breaking Changes
delete() Method
No Breaking Changes
delete_all() Method
No Breaking Changes
AsyncMemory Class Changes
Enhanced Async Support
v0.x (Limited)
v1.0 Beta (Optimized)
Configuration Changes
Memory Configuration
v0.x Config Options
v1.0 Beta Config Options
New Configuration Options
Reranker Configuration
Error Handling Changes
New Error Types
v0.x Errors
v1.0 Beta Errors
Validation Changes
Stricter Parameter Validation
v0.x (Lenient):Response Schema Changes
Memory Object Schema
v0.x Schema
v1.0 Beta Schema (Enhanced)
Migration Code Examples
Simple Migration
Before (v0.x)
After (v1.0 Beta)
Advanced Migration
Before (v0.x)
After (v1.0 Beta)
Summary
Component | v0.x | v1.0 Beta | Status |
---|---|---|---|
add() method | Variable response | Standardized response | ⚠️ Breaking |
search() method | Basic filtering | Enhanced filtering + reranking | ⚠️ Breaking |
get_all() method | Variable response | Standardized response | ⚠️ Breaking |
Response format | Variable | Always {"results": [...]} | ⚠️ Breaking |
Reranking | ❌ Not available | ✅ Full support | ✅ New feature |
Advanced filtering | ❌ Basic only | ✅ Full operators | ✅ Enhancement |
Error handling | Generic | Specific error types | ✅ Improvement |
Use this reference to systematically update your codebase. Test each change thoroughly before deploying to production.