-
Notifications
You must be signed in to change notification settings - Fork 202
Add "reset" action to mem0_memory actions
#293
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
base: main
Are you sure you want to change the base?
Add "reset" action to mem0_memory actions
#293
Conversation
Signed-off-by: Andrew Carbonetto <[email protected]>
| console.print( | ||
| Panel( | ||
| "", | ||
| title="[bold red]⚠️ All Memories to be permanently deleted", |
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.
Should we print the user or agent id to give more context?
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.
We don't do that anywhere else.
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
|
@JackYPCOnline @cagataycali would either of you have a chance to take a look at this PR? Mem0 doesn't allow us to delete graph relationships otherwise. |
Signed-off-by: Andrew Carbonetto <[email protected]>
| mem0_memory = [ | ||
| # Need to be optional as a fix for https://github.com/strands-agents/docs/issues/19 | ||
| "mem0ai>=0.1.99,<1.0.0", | ||
| "langchain-aws>=0.2.23", |
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.
Did i miss anything
Description
Mem0 graph storage doesn't return the memory id from the source (ie. the relationship ID on the graph). It does return the memory id for vector (text-summary) storage.
The delete action deletes memories by ID, which means we are able to delete text-summaries in the vector storage, but we cannot delete relationships in the graph storage.
Adding a new action "reset" which will delete all storage (graph & vector) as a work-around for cleaning up the mem0 memories. Until a time when mem0 returns the memory ID.
Related Issues
N/A
Documentation PR
strands-agents/docs#262
Type of Change
Testing
How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.