We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a633044 commit 4c6b1c1Copy full SHA for 4c6b1c1
agent_memory_server/vectorstore_adapter.py
@@ -261,6 +261,20 @@ async def count_memories(
261
"""
262
pass
263
264
+ def _parse_list_field(self, field_value):
265
+ """Parse a field that might be a list, comma-separated string, or None.
266
+
267
+ Centralized here so both LangChain and Redis adapters can normalize
268
+ metadata fields like topics/entities/extracted_from.
269
+ """
270
+ if not field_value:
271
+ return []
272
+ if isinstance(field_value, list):
273
+ return field_value
274
+ if isinstance(field_value, str):
275
+ return field_value.split(",") if field_value else []
276
277
278
def memory_to_document(self, memory: MemoryRecord) -> Document:
279
"""Convert a MemoryRecord to a LangChain Document.
280
0 commit comments