Fix Mem0 metadata validation error and improve auto_memory_wrapper example#1683
Merged
rapids-bot[bot] merged 2 commits intoNVIDIA:release/1.5from Feb 27, 2026
Conversation
Signed-off-by: Eric Evans <194135482+ericevans-nv@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughAdds Mem0 as an alternative memory backend for the auto_memory_wrapper example (docs and new config), removes Phoenix tracing from the Zep config, and makes a defensive null-handling change in Mem0 editor metadata extraction. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
willkill07
approved these changes
Feb 27, 2026
Member
willkill07
left a comment
There was a problem hiding this comment.
Thanks for adding a config_mem0.yml example :)
AnuradhaKaruppiah
approved these changes
Feb 27, 2026
Signed-off-by: Eric Evans <194135482+ericevans-nv@users.noreply.github.com>
a324c0b to
66349bd
Compare
Contributor
|
/merge |
Charlie-Yi-2002
pushed a commit
to Charlie-Yi-2002/NeMo-Agent-Toolkit
that referenced
this pull request
Mar 5, 2026
…ample (NVIDIA#1683) Fix a `ValidationError` in the Mem0 memory editor when the Mem0 API returns `null` for the `metadata` field in search results. The `MemoryItem` model expects a `dict`, but `res.pop("metadata", {})` returns `None` when the key exists with a `null` value, causing Pydantic validation to fail. Additionally: - Remove the Phoenix tracing exporter from `config_zep.yml` to eliminate noisy connection errors for users without a local Phoenix server - Add `config_mem0.yml` as an alternative example config for users who do not have access to a Zep API key - Update the auto_memory_wrapper README to document Mem0 as an alternative memory backend ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/NVIDIA/NeMo-Agent-Toolkit/blob/develop/docs/source/resources/contributing/index.md). - We require that all contributors "sign-off" on their commits. This certifies that the contribution is your original work, or you have rights to submit it under the same license, or a compatible license. - Any contribution which contains commits that are not Signed-Off will not be accepted. - When the PR is ready for review, new or existing tests cover these changes. - When the PR is ready for review, the documentation is up to date with these changes. ## Summary by CodeRabbit * **New Features** * Added support for Mem0 as an alternative memory backend with example configs and setup guidance. * **Bug Fixes** * Improved robustness of metadata handling in memory operations. * **Documentation** * Updated examples and docs to include Mem0 options and run commands; removed deprecated Phoenix tracing config and fixed a tutorial reference link. Authors: - Eric Evans II (https://github.com/ericevans-nv) Approvers: - Will Killian (https://github.com/willkill07) - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) URL: NVIDIA#1683
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.
Description
Fix a
ValidationErrorin the Mem0 memory editor when the Mem0 API returnsnullforthe
metadatafield in search results. TheMemoryItemmodel expects adict, butres.pop("metadata", {})returnsNonewhen the key exists with anullvalue, causingPydantic validation to fail.
Additionally:
config_zep.ymlto eliminate noisy connectionerrors for users without a local Phoenix server
config_mem0.ymlas an alternative example config for users who do not have accessto a Zep API key
By Submitting this PR I confirm:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation