-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for custom memory storage #2280
base: main
Are you sure you want to change the base?
Conversation
Co-Authored-By: Joe Moura <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Joe Moura <[email protected]>
Co-Authored-By: Joe Moura <[email protected]>
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment: Custom Memory Storage ImplementationOverviewThe patch effectively introduces configuration support for custom memory storage backends in crewAI, granting users the flexibility to supply their own storage implementations. The changes are comprehensive, spanning multiple core files, documentation enhancements, and thorough test cases. Key Findings1. Documentation (custom_memory_storage.mdx)
2. Core Memory Classes Refactoring
3. Storage Interface Implementation
4. Test Coverage Recommendations
Recommendations for Future Improvements
Security Considerations
ConclusionThe implementation shows a solid understanding of extensibility in memory management. However, adopting the proposed enhancements regarding type safety, test coverage, and logging will significantly improve code quality and resilience against future changes. The documentation is well-structured and the test coverage is commendable, making the codebase ready for production with the suggested adjustments. Overall, commendable work! By addressing the above points, we can significantly enhance the maintainability and extensibility of the memory storage solution while ensuring it meets both user expectations and security standards. |
Co-Authored-By: Joe Moura <[email protected]>
Co-Authored-By: Joe Moura <[email protected]>
Co-Authored-By: Joe Moura <[email protected]>
Add support for custom memory storage
Fixes #2278
Description
This PR adds support for custom memory storage implementations for different memory types. Users can now provide their own storage implementation by extending the
Storage
interface and passing it to the memory instances or through thememory_config
parameter.Features
Testing
Documentation
docs/concepts/custom_memory_storage.mdx
with examples of how to use custom storageLink to Devin run
https://app.devin.ai/sessions/a0f6657060134ab59fd10f5dc746b60b