invalidate refreshes the context builder so freshly written memory is visible on the next turn. No-op when the builder is absent.
()
| 35 | // invalidate refreshes the context builder so freshly written memory is |
| 36 | // visible on the next turn. No-op when the builder is absent. |
| 37 | func (a *memoryPluginAdapter) invalidate() { |
| 38 | if a.cli.contextBuilder != nil { |
| 39 | a.cli.contextBuilder.InvalidateCache() |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func (a *memoryPluginAdapter) Remember(content, category string) (string, error) { |
| 44 | if a.cli.memoryStore == nil { |
no test coverage detected