Files
crewAI/lib/crewai/tests
Devin AI 0a9fb72cfe fix: resolve type signature incompatibility in LongTermMemory
This commit fixes the type signature incompatibility issue in the
LongTermMemory class (issue #4213). The save(), asave(), search(), and
asearch() methods now have signatures compatible with the Memory base class,
following the Liskov Substitution Principle.

Changes:
- Renamed 'item' parameter to 'value' in save() and asave() methods
- Added 'metadata' parameter to save() and asave() methods for LSP compliance
- Renamed 'task' parameter to 'query' in search() and asearch() methods
- Renamed 'latest_n' parameter to 'limit' in search() and asearch() methods
- Added 'score_threshold' parameter to search() and asearch() methods
- Removed '# type: ignore' comments that were suppressing the type errors
- Updated existing tests to use new parameter names
- Added comprehensive tests to verify type signature compatibility

Co-Authored-By: João <joao@crewai.com>
2026-01-10 21:06:56 +00:00
..
2026-01-05 15:30:21 -08:00
2025-10-20 14:10:19 -07:00
2025-12-04 16:53:19 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-12-04 13:34:29 -08:00
2025-12-05 13:23:26 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-12-01 18:56:56 -05:00
2025-12-04 17:08:08 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00