-
Notifications
You must be signed in to change notification settings - Fork 1
feat: implement Mem0 memory backend adapter #345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1115087
feat: implement Mem0 memory backend adapter (#206)
Aureliolo b51c09a
refactor: harden Mem0 adapter with review findings from 9 agents
Aureliolo d1a552a
fix: address 29 PR review findings from local agents and external rev…
Aureliolo 258d1a0
fix: address round-2 PR review findings and fix dependency review CI
Aureliolo a7ee906
fix: add non-dict metadata guards and created_at fallback logging
Aureliolo 5aedbc4
fix: remove double-logging in retract() ownership check path
Aureliolo ab58ccf
fix: address round-3 PR review findings across adapter, mappers, conf…
Aureliolo 5a4bc0a
fix: install mem0 optional extra in CI setup action
Aureliolo d9e0dee
fix: revert mem0ai to required dependency
Aureliolo 3c0c855
fix: address round-4 PR review findings from CodeRabbit, Greptile, an…
Aureliolo 71469c2
fix: address round-5 PR review findings and add missing test coverage
Aureliolo 3adf18b
fix: address round-6 PR review findings across adapter, docs, tests, …
Aureliolo 16975cb
fix: address round-7 PR review findings across adapter, mappers, conf…
Aureliolo 6b69d77
fix: address round-8 PR review findings — orphan rejection, vendor na…
Aureliolo fc9fcb7
fix: type-safe client, idiomatic patterns, and expanded test coverage
Aureliolo 155d263
fix: address round-9 PR review findings — module extraction, system e…
Aureliolo 1c20792
fix: address round-10 review findings — event misuse, constructor log…
Aureliolo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| """Concrete memory backend implementations.""" | ||
|
|
||
| from ai_company.memory.backends.mem0 import Mem0MemoryBackend | ||
|
|
||
| __all__ = ["Mem0MemoryBackend"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| """Mem0-backed agent memory — adapter, config, and mappers.""" | ||
|
|
||
| from ai_company.memory.backends.mem0.adapter import Mem0MemoryBackend | ||
| from ai_company.memory.backends.mem0.config import Mem0BackendConfig, Mem0EmbedderConfig | ||
|
|
||
| __all__ = ["Mem0BackendConfig", "Mem0EmbedderConfig", "Mem0MemoryBackend"] |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use typographical ellipsis in prose for consistency.
Replace
embedder=...withembedder=…in the sentence text (outside code blocks) to satisfy the style lint hint.🧰 Tools
🪛 LanguageTool
[style] ~313-~313: Consider using the typographical ellipsis character here instead.
Context: ...g). All are frozen Pydantic models. The
create_memory_backend(config, *, embedder=...)factory returns an isolated `MemoryBa...(ELLIPSIS)
🤖 Prompt for AI Agents