diff --git a/changelog/4156.added.md b/changelog/4156.added.md new file mode 100644 index 000000000..bbf426d5f --- /dev/null +++ b/changelog/4156.added.md @@ -0,0 +1 @@ +- Added `Mem0MemoryService.get_memories()` convenience method for retrieving all stored memories outside the pipeline (e.g. to build a personalized greeting at connection time). This avoids the need to manually handle client type branching, filter construction, and async wrapping. diff --git a/changelog/4156.changed.md b/changelog/4156.changed.md new file mode 100644 index 000000000..d4b8a269a --- /dev/null +++ b/changelog/4156.changed.md @@ -0,0 +1 @@ +- ⚠️ Bumped `mem0ai` dependency from `~=0.1.94` to `>=1.0.8,<2`. Users of the `mem0` extra will need to update their mem0ai package. diff --git a/changelog/4156.fixed.2.md b/changelog/4156.fixed.2.md new file mode 100644 index 000000000..1a6997d4f --- /dev/null +++ b/changelog/4156.fixed.2.md @@ -0,0 +1 @@ +- Fixed `Mem0MemoryService` failing to store messages when the context contained system or developer role messages. The Mem0 API only accepts user and assistant roles, so other roles are now filtered out before storing. diff --git a/changelog/4156.fixed.md b/changelog/4156.fixed.md new file mode 100644 index 000000000..13620f772 --- /dev/null +++ b/changelog/4156.fixed.md @@ -0,0 +1 @@ +- `Mem0MemoryService` no longer blocks the event loop during memory storage and retrieval. All Mem0 API calls now run in a background thread, and message storage is fire-and-forget so it doesn't delay downstream processing.