MCPcopy Index your code
hub / github.com/geekcomputers/Python / save_memory

Function save_memory

JARVIS/memory.py:20–24  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

18
19
20def save_memory(items):
21 MEMORY_FILE.write_text(
22 json.dumps(items[-MAX_MEMORY_ITEMS:], ensure_ascii=False, indent=2),
23 encoding="utf-8",
24 )
25
26
27def clear_memory():

Callers 2

clear_memoryFunction · 0.85
remember_noteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected