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

Function SetMemoryAdapter

cli/plugins/builtin_memory.go:71–73  ·  view source on GitHub ↗

stores memAdapterHolder SetMemoryAdapter wires the live adapter. Called from the top-level cli package after the memory store is initialized. Pass nil to clear it.

(a MemoryAdapter)

Source from the content-addressed store, hash-verified

69// SetMemoryAdapter wires the live adapter. Called from the top-level cli
70// package after the memory store is initialized. Pass nil to clear it.
71func SetMemoryAdapter(a MemoryAdapter) {
72 memoryAdapterAtom.Store(memAdapterHolder{a: a})
73}
74
75// currentMemoryAdapter returns the wired adapter or nil.
76func currentMemoryAdapter() MemoryAdapter {

Calls

no outgoing calls