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

Method invalidate

cli/memory_adapter.go:37–41  ·  view source on GitHub ↗

invalidate refreshes the context builder so freshly written memory is visible on the next turn. No-op when the builder is absent.

()

Source from the content-addressed store, hash-verified

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

Callers 3

RememberMethod · 0.95
UpdateProfileMethod · 0.95
ForgetMethod · 0.95

Calls 1

InvalidateCacheMethod · 0.45

Tested by

no test coverage detected