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

Function currentMemoryAdapter

cli/plugins/builtin_memory.go:76–83  ·  view source on GitHub ↗

currentMemoryAdapter returns the wired adapter or nil.

()

Source from the content-addressed store, hash-verified

74
75// currentMemoryAdapter returns the wired adapter or nil.
76func currentMemoryAdapter() MemoryAdapter {
77 v := memoryAdapterAtom.Load()
78 if v == nil {
79 return nil
80 }
81 h, _ := v.(memAdapterHolder)
82 return h.a
83}
84
85// BuiltinMemoryPlugin is the @memory tool.
86type BuiltinMemoryPlugin struct{}

Callers 1

ExecuteWithStreamMethod · 0.85

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected