Skip to content

Feat: support metadata recording and filtering for Mem0#563

Merged
AlbumenJ merged 3 commits intoagentscope-ai:mainfrom
xuanmiss:feat-mem0-metadatafilter
Jan 16, 2026
Merged

Feat: support metadata recording and filtering for Mem0#563
AlbumenJ merged 3 commits intoagentscope-ai:mainfrom
xuanmiss:feat-mem0-metadatafilter

Conversation

@xuanmiss
Copy link
Contributor

AgentScope-Java Version

[The version of AgentScope-Java you are working on, e.g. 1.0.7, check your pom.xml dependency version or run mvn dependency:tree | grep agentscope-parent:pom(only mac/linux)]

$ mvn dependency:tree | grep agentscope-parent:pom
[INFO] io.agentscope:agentscope-parent:pom:1.0.8-SNAPSHOT

Description

[Please describe the background, purpose, changes made, and how to test this PR]
Feat #561

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

- Introduced a metadata field in Mem0LongTermMemory for storing custom key-value pairs.
- Updated Mem0Example to demonstrate the usage of metadata when building memory instances.
- Enhanced documentation to reflect the new metadata functionality, including examples for tagging and filtering memories.
- Modified Mem0SearchRequest to incorporate metadata filters during memory retrieval.
- Cleaned up the import statements in Mem0LongTermMemory by removing an unused import.
@xuanmiss xuanmiss requested a review from a team January 14, 2026 12:52
@xuanmiss xuanmiss changed the title eat: support metadata recording and filtering for Mem0 #561 Feat: support metadata recording and filtering for Mem0 Jan 14, 2026
@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 64.28571% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...gentscope/core/memory/mem0/Mem0LongTermMemory.java 69.23% 3 Missing and 1 partial ⚠️
...agentscope/core/memory/mem0/Mem0SearchRequest.java 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@AlbumenJ AlbumenJ merged commit 873ca2d into agentscope-ai:main Jan 16, 2026
5 checks passed
Alexxigang pushed a commit to Alexxigang/agentscope-java that referenced this pull request Jan 25, 2026
…i#563)

## AgentScope-Java Version

[The version of AgentScope-Java you are working on, e.g. 1.0.7, check
your pom.xml dependency version or run `mvn dependency:tree | grep
agentscope-parent:pom`(only mac/linux)]

$ mvn dependency:tree | grep agentscope-parent:pom
[INFO] io.agentscope:agentscope-parent:pom:1.0.8-SNAPSHOT

## Description

[Please describe the background, purpose, changes made, and how to test
this PR]
Feat [agentscope-ai#561
](agentscope-ai#561)


## Checklist

Please check the following items before code is ready to be reviewed.

- [x]  Code has been formatted with `mvn spotless:apply`
- [x]  All tests are passing (`mvn test`)
- [x]  Javadoc comments are complete and follow project conventions
- [x] Related documentation has been updated (e.g. links, examples,
etc.)
- [x]  Code is ready for review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants