Skip to content

Fix condition check for memories_result type in AsyncMemory class#3621

Merged
parshvadaftari merged 1 commit intomem0ai:mainfrom
rahulsharmavishwakarma:fix-mongo
Oct 21, 2025
Merged

Fix condition check for memories_result type in AsyncMemory class#3621
parshvadaftari merged 1 commit intomem0ai:mainfrom
rahulsharmavishwakarma:fix-mongo

Conversation

@rahulsharmavishwakarma
Copy link
Copy Markdown
Contributor

Description

This fixes issue #3605 attribute error for MongoDB in async Memory class module for get_all

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

async def main():
    # Initialize Memory with the configuration
    m = await AsyncMemory.from_config(config)

    memories = await m.get_all(user_id="john")

    print(memories)
    print(len(memories["results"]))
  • Test Script (please provide)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Made sure Checks passed

Copy link
Copy Markdown
Contributor

@parshvadaftari parshvadaftari left a comment

Choose a reason for hiding this comment

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

Looks good to me

@parshvadaftari parshvadaftari merged commit 3b1a4c2 into mem0ai:main Oct 21, 2025
6 of 7 checks passed
jamebobob pushed a commit to jamebobob/mem0-vigil-recall that referenced this pull request Mar 29, 2026
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