fix: memory entry validation crashes on a non-dict row from memory.json (#1691)
This commit is contained in:
@@ -137,6 +137,8 @@ class MemoryManager:
|
||||
"""Ensure all entries have required fields."""
|
||||
validated = []
|
||||
for entry in entries:
|
||||
if not isinstance(entry, dict):
|
||||
continue
|
||||
if "id" not in entry:
|
||||
entry["id"] = str(uuid.uuid4())
|
||||
if "timestamp" not in entry:
|
||||
|
||||
Reference in New Issue
Block a user