refactor: implement lazy loading for heavy dependencies in Memory module (#4632)
- Introduced lazy imports for the Memory and EncodingFlow classes to optimize import time and reduce initial load, particularly beneficial for deployment scenarios like Celery pre-fork. - Updated the Memory class to include new configuration options for aggregation queries, enhancing its functionality. - Adjusted the __getattr__ method in both the crewai and memory modules to support lazy loading of specified attributes.
J
João Moura committed
514c082882857fe82dfbb16bbe1d069764c4a575
Parent: c9e8068
Committed by GitHub <noreply@github.com>
on 2/27/2026, 6:20:02 AM