Skip to content

Conversation

@MatthiasHowellYopp
Copy link

@MatthiasHowellYopp MatthiasHowellYopp commented Dec 9, 2025

changes to support using mem0 with valkey/redis as external memory provider for crewai

fixes #4031


Note

Flattens single-condition search filters for Valkey/Redis vector stores in Mem0 storage and adds tests covering flattening, non-flattening, and None-config cases.

  • Mem0 Storage (crewai/memory/storage/mem0_storage.py):
    • Search filter handling: For provider in {"valkey", "redis"}, flatten single-condition AND/OR filters to a simple dict (e.g., {"run_id": "..."} or {"agent_id": "..."}).
    • Robust config parsing: Safely handle None or missing local_mem0_config / vector_store without raising errors.
  • Tests (tests/storage/test_mem0_storage.py):
    • Add coverage for Valkey/Redis filter flattening and retention of structure when multiple conditions exist.
    • Add cases ensuring non-Valkey/Redis providers keep AND structure.
    • Add cases handling None local_mem0_config and vector_store values without errors.

Written by Cursor Bugbot for commit f1af3da. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 28

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

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