MCPcopy Create free account
hub / github.com/diillson/chatcli / WriteLongTerm

Method WriteLongTerm

cli/workspace/memory.go:68–70  ·  view source on GitHub ↗

WriteLongTerm parses content into facts and merges them into long-term memory (existing facts are kept; duplicates reinforce).

(content string)

Source from the content-addressed store, hash-verified

66// WriteLongTerm parses content into facts and merges them into long-term
67// memory (existing facts are kept; duplicates reinforce).
68func (ms *MemoryStore) WriteLongTerm(content string) error {
69 return ms.manager.WriteLongTerm(content)
70}
71
72// AppendLongTerm adds new content to long-term memory.
73func (ms *MemoryStore) AppendLongTerm(entry string) error {

Callers 3

TestReadWriteLongTermFunction · 0.95
TestAppendLongTermFunction · 0.95
TestGetMemoryContextFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestReadWriteLongTermFunction · 0.76
TestAppendLongTermFunction · 0.76
TestGetMemoryContextFunction · 0.76