The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
fix(configs): migrate CassandraConfig and AzureMySQLConfig to pydantic v2 ConfigDict (#4646)
Prithvi Monangif94ea0658805
diff --git a/mem0/configs/vector_stores/azure_mysql.py b/mem0/configs/vector_stores/azure_mysql.pyindex e5d468612..861452ac8 100644--- a/mem0/configs/vector_stores/azure_mysql.py+++ b/mem0/configs/vector_stores/azure_mysql.py@@ -1,6 +1,6 @@from typing import Any, Dict, Optional-from pydantic import BaseModel, Field, model_validator+from pydantic import BaseModel, ConfigDict, Field, model_validatorclass AzureMySQLConfig(BaseModel):@@ -80,5 +80,4 @@ class AzureMySQLConfig(BaseModel):return values- class Config:- arbitrary_types_allowed = True+ model_config = ConfigDict(arbitrary_types_allowed=True)diff --git a/mem0/configs/vector_stores/cassandra.py b/mem0/configs/vector_stores/cassandra.pyindex 40e629a81..39dc46dd9 100644--- a/mem0/configs/vector_stores/cassandra.py+++ b/mem0/configs/vector_stores/cassandra.py@@ -1,6 +1,6 @@from typing import Any, Dict, List, Optional-from pydantic import BaseModel, Field, model_validator+from pydantic import BaseModel, ConfigDict, Field, model_validatorclass CassandraConfig(BaseModel):@@ -72,6 +72,5 @@ class CassandraConfig(BaseModel):return values- class Config:- arbitrary_types_allowed = True+ model_config = ConfigDict(arbitrary_types_allowed=True)