fix: Update CrewAI integration for compatibility with v0.186.0+#428
Merged
jackaldenryan merged 2 commits intomainfrom Sep 11, 2025
Merged
fix: Update CrewAI integration for compatibility with v0.186.0+#428jackaldenryan merged 2 commits intomainfrom
jackaldenryan merged 2 commits intomainfrom
Conversation
Changes external memory search results to use "context" key instead of "memory" to align with CrewAI's updated external memory interface. This fixes KeyError issues when using Zep with CrewAI v0.186.0 and later versions. Changes: - Updated ZepUserStorage, ZepGraphStorage, and ZepStorage search methods - Fixed test assertions to expect "context" key in results - Updated example scripts to display results using "context" key - All 60 tests pass, examples run successfully with CrewAI v0.186.1 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
paul-paliychuk
approved these changes
Sep 11, 2025
Update version for CrewAI v0.186.0+ compatibility bug fix. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes compatibility issues between Zep CrewAI integration and CrewAI version 0.186.0+. The core issue was that CrewAI changed its external memory interface to expect search results with a
"context"key instead of the previous"memory"key.Changes Made
ZepUserStorage,ZepGraphStorage, andZepStoragesearch methods to return results with"context"keytest_graph_storage.pyandtest_user_storage.pyto expect"context"keycrewai_graph.pyandcrewai_user.pyto display results using the correct keyValidation
Root Cause
CrewAI version 0.186.0 introduced breaking changes to the external memory interface. The
Storage.search()method results are now expected to contain a"context"key instead of"memory". This change was made to standardize external memory integrations across the CrewAI ecosystem.Impact
KeyError: 'context'errors when using Zep with CrewAI v0.186.0+🤖 Generated with Claude Code