feat: add Mem0 memory integration with config, implementation, docs, tests, and dependency#598
feat: add Mem0 memory integration with config, implementation, docs, tests, and dependency#598kartik-mem0 wants to merge 3 commits intoOpenBMB:mainfrom
Conversation
…tests, and dependency
NA-Wen
left a comment
There was a problem hiding this comment.
Thanks a lot for this contribution—this is a meaningful enhancement to current agents' memory system and really helps broaden the overall capability.
One small issue we noticed is that the Chinese version of the documentation (docs/user_guide/zh/modules/memory.md) seems to be missing or not updated alongside the English changes. It would be great to keep both language versions in sync to ensure consistency for all users.
… exclude assistant output
hey @NA-Wen thank you for the feedback i have addressed those fix. hoping that this integration matches the codebase standards. |
Closes #597
What
Adds Mem0 as a new memory store plugin (
type: mem0) alongsidesimple,file, andblackboard.Changes
entity/configs/node/memory.pyMem0MemoryConfigdataclass withFIELD_SPECSentity/configs/__init__.pyMem0MemoryConfigruntime/node/agent/memory/mem0_memory.pyMem0Memory(MemoryBase)usingmem0aiSDKruntime/node/agent/memory/builtin_stores.pymem0store with lazy factorypyproject.tomlmem0ai>=1.0.9dependencytests/test_mem0_memory.pyyaml_instance/demo_mem0_memory.yamldocs/user_guide/en/modules/memory.mdDesign
mem0aiPython SDK with lazy import (no startup cost)filtersdict; add uses top-level kwargs (per SDK docs)user_id/agent_idscoping withORfilter when both are configuredrole: "assistant"per Mem0's entity-scoped memory modelload()/save()are no-ops — Mem0 manages persistence server-sideTest
uv run python -m pytest tests/test_mem0_memory.py -v # 25 pass