docs: fix long term memory class name in examples

- Replace EnhanceLongTermMemory with LongTermMemory to match actual implementation
- Update code examples to show correct usage
- Fixes #2026

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-02-06 19:48:16 +00:00
parent abee94d056
commit c58701c44a

View File

@@ -66,12 +66,12 @@ my_crew = Crew(
tasks=[...], tasks=[...],
process="Process.sequential", process="Process.sequential",
memory=True, memory=True,
long_term_memory=EnhanceLongTermMemory( long_term_memory=LongTermMemory(
storage=LTMSQLiteStorage( storage=LTMSQLiteStorage(
db_path="/my_data_dir/my_crew1/long_term_memory_storage.db" db_path="/my_data_dir/my_crew1/long_term_memory_storage.db"
) )
), ),
short_term_memory=EnhanceShortTermMemory( short_term_memory=ShortTermMemory(
storage=CustomRAGStorage( storage=CustomRAGStorage(
crew_name="my_crew", crew_name="my_crew",
storage_type="short_term", storage_type="short_term",
@@ -80,7 +80,7 @@ my_crew = Crew(
dimension=embedder["dimension"], dimension=embedder["dimension"],
), ),
), ),
entity_memory=EnhanceEntityMemory( entity_memory=EntityMemory(
storage=CustomRAGStorage( storage=CustomRAGStorage(
crew_name="my_crew", crew_name="my_crew",
storage_type="entities", storage_type="entities",