Compare commits

..

4 Commits

Author SHA1 Message Date
Lucas Gomide
d26ece7343 Merge branch 'main' into fix-issue-2263 2025-04-14 17:29:48 -03:00
Lucas Gomide
739d58a3ec Merge branch 'main' into fix-issue-2263 2025-04-14 16:35:46 -03:00
Lorenze Jay
7b1388b34c Merge branch 'main' into fix-issue-2263 2025-04-14 08:35:46 -07:00
Lucas Gomide
24a0f66141 fix: add type hints and ignore type checks for config access 2025-04-14 11:46:45 -03:00

View File

@@ -24,7 +24,7 @@ class Mem0Storage(Storage):
self.crew = crew
self.config = config or {}
# TODO: Memory config will be removed in the future the config will be passed as a parameter
self.memory_config = self.config if config is not None else getattr(crew, "memory_config", {}) or {}
self.memory_config = self.config or getattr(crew, "memory_config", {}) or {}
# User ID is required for user memory type "user" since it's used as a unique identifier for the user.
user_id = self._get_user_id()