Skip to content

Conversation

@acarbonetto
Copy link
Contributor

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

  • Bug fix

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

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@acarbonetto acarbonetto requested a review from a team as a code owner October 27, 2025 17:14
console.print(
Panel(
"",
title="[bold red]⚠️ All Memories to be permanently deleted",
Copy link
Contributor

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?

Copy link
Contributor Author

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]>
@acarbonetto
Copy link
Contributor Author

@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.

@JackYPCOnline JackYPCOnline self-assigned this Nov 4, 2025
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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did i miss anything

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.

3 participants