feat: add Mem0 memory integration with config, implementation, docs, tests, and dependency#598
Open
kartik-mem0 wants to merge 1 commit intoOpenBMB:mainfrom
Open
feat: add Mem0 memory integration with config, implementation, docs, tests, and dependency#598kartik-mem0 wants to merge 1 commit intoOpenBMB:mainfrom
kartik-mem0 wants to merge 1 commit intoOpenBMB:mainfrom
Conversation
…tests, and dependency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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