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

Function remember_note

JARVIS/memory.py:31–39  ·  view source on GitHub ↗
(note)

Source from the content-addressed store, hash-verified

29
30
31def remember_note(note):
32 note = str(note).strip()
33 if not note:
34 return "What should I remember?"
35 memory = load_memory()
36 if note not in memory:
37 memory.append(note[:500])
38 save_memory(memory)
39 return "I will remember that."
40
41
42def memory_context():

Callers 1

handle_user_textFunction · 0.85

Calls 3

load_memoryFunction · 0.85
save_memoryFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected