(content, category string)
| 41 | } |
| 42 | |
| 43 | func (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 | |
| 55 | func (a *memoryPluginAdapter) UpdateProfile(updates map[string]string) (string, error) { |
| 56 | if a.cli.memoryStore == nil { |