Fix memory provider issue

This commit is contained in:
Brandon Hancock
2025-02-07 13:34:36 -05:00
parent c6cd7516cb
commit a773d42989

View File

@@ -14,6 +14,8 @@ class ShortTermMemory(Memory):
MemoryItem instances.
"""
memory_provider: Any
def __init__(self, crew=None, embedder_config=None, storage=None, path=None):
if crew and hasattr(crew, "memory_config") and crew.memory_config is not None:
self.memory_provider = crew.memory_config.get("provider")