Fix incorrect import statement in memory examples documentation (fixes #2395) (#2396)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Joe Moura <joao@crewai.com>
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com>
This commit is contained in:
devin-ai-integration[bot]
2025-03-20 12:17:26 -04:00
committed by GitHub
parent f8f9df6d1d
commit 9fc84fc1ac

View File

@@ -60,7 +60,8 @@ my_crew = Crew(
```python Code ```python Code
from crewai import Crew, Process from crewai import Crew, Process
from crewai.memory import LongTermMemory, ShortTermMemory, EntityMemory from crewai.memory import LongTermMemory, ShortTermMemory, EntityMemory
from crewai.memory.storage import LTMSQLiteStorage, RAGStorage from crewai.memory.storage.rag_storage import RAGStorage
from crewai.memory.storage.ltm_sqlite_storage import LTMSQLiteStorage
from typing import List, Optional from typing import List, Optional
# Assemble your crew with memory capabilities # Assemble your crew with memory capabilities
@@ -119,7 +120,7 @@ Example using environment variables:
import os import os
from crewai import Crew from crewai import Crew
from crewai.memory import LongTermMemory from crewai.memory import LongTermMemory
from crewai.memory.storage import LTMSQLiteStorage from crewai.memory.storage.ltm_sqlite_storage import LTMSQLiteStorage
# Configure storage path using environment variable # Configure storage path using environment variable
storage_path = os.getenv("CREWAI_STORAGE_DIR", "./storage") storage_path = os.getenv("CREWAI_STORAGE_DIR", "./storage")
@@ -148,7 +149,7 @@ crew = Crew(memory=True) # Uses default storage locations
```python ```python
from crewai import Crew from crewai import Crew
from crewai.memory import LongTermMemory from crewai.memory import LongTermMemory
from crewai.memory.storage import LTMSQLiteStorage from crewai.memory.storage.ltm_sqlite_storage import LTMSQLiteStorage
# Configure custom storage paths # Configure custom storage paths
crew = Crew( crew = Crew(