fix: AsyncMemory.reset() does not reset entity store (#5535)

This commit is contained in:
Hrushikesh Yadav
2026-06-16 15:50:30 +05:30
committed by GitHub
parent d46464282c
commit 8b370def80
+7
View File
@@ -3475,6 +3475,13 @@ class AsyncMemory(MemoryBase):
self.config.vector_store.provider, self.config.vector_store.config
)
if self._entity_store is not None:
try:
await asyncio.to_thread(self._entity_store.reset)
except Exception as e:
logger.warning(f"Failed to reset entity store: {e}")
self._entity_store = None
capture_event("mem0.reset", self, {"sync_type": "async"})
await display_first_run_notice_async(self, "async", "reset")