MCPcopy Create free account
hub / github.com/MemTensor/MemOS / _print_memory_sets

Function _print_memory_sets

examples/mem_reader/runners/run_simple.py:12–21  ·  view source on GitHub ↗

memories: list[list[TextualMemoryItem]]

(title: str, memories)

Source from the content-addressed store, hash-verified

10
11
12def _print_memory_sets(title: str, memories):
13 """memories: list[list[TextualMemoryItem]]"""
14 total = sum(len(mem_list) for mem_list in memories)
15 print(f"\n{title}")
16 print(f"📊 Total memory items: {total}")
17 print(f"✅ Extracted {len(memories)} memory sets.")
18 for i, memory_list in enumerate(memories):
19 print(f"\n--- Window/Conversation {i + 1} Memories ({len(memory_list)} items) ---")
20 for item in memory_list:
21 print_memory_item(item, indent=2)
22
23
24def run_simple_reader():

Callers 1

run_simple_readerFunction · 0.85

Calls 1

print_memory_itemFunction · 0.90

Tested by

no test coverage detected