Skip to content

Conversation

@majiayu000
Copy link

Summary

  • Added null check for existing_memory before accessing .payload
  • Raises clear ValueError when memory_id does not exist
  • Fixed both sync and async versions of _delete_memory

Test plan

  • Added unit test for delete with non-existent memory_id
  • All existing memory tests pass

Fixes #3849

- Added null check for existing_memory before accessing payload
- Raises clear ValueError when memory_id does not exist
- Fixed both sync and async versions of _delete_memory
- Added test to verify proper error handling

Fixes mem0ai#3849

Signed-off-by: majiayu000 <1835304752@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant