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