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

Method Remember

cli/memory_adapter.go:43–53  ·  view source on GitHub ↗
(content, category string)

Source from the content-addressed store, hash-verified

41}
42
43func (a *memoryPluginAdapter) Remember(content, category string) (string, error) {
44 if a.cli.memoryStore == nil {
45 return "", fmt.Errorf("memory not enabled")
46 }
47 added := a.cli.memoryStore.RememberFact(content, category)
48 a.invalidate()
49 if !added {
50 return i18n.T("mem.tool.remember.dup"), nil
51 }
52 return i18n.T("mem.tool.remember.ok", content), nil
53}
54
55func (a *memoryPluginAdapter) UpdateProfile(updates map[string]string) (string, error) {
56 if a.cli.memoryStore == nil {

Callers 2

TestMemoryPluginAdapterFunction · 0.95

Calls 4

invalidateMethod · 0.95
TFunction · 0.92
ErrorfMethod · 0.80
RememberFactMethod · 0.45

Tested by 2

TestMemoryPluginAdapterFunction · 0.76