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

Function currentContextAdapter

cli/plugins/builtin_context.go:94–101  ·  view source on GitHub ↗

currentContextAdapter returns the wired adapter or nil.

()

Source from the content-addressed store, hash-verified

92
93// currentContextAdapter returns the wired adapter or nil.
94func currentContextAdapter() ContextAdapter {
95 v := contextAdapterAtom.Load()
96 if v == nil {
97 return nil
98 }
99 h, _ := v.(ctxAdapterHolder)
100 return h.a
101}
102
103// BuiltinContextPlugin is the @context tool.
104type BuiltinContextPlugin struct{}

Callers 1

ExecuteWithStreamMethod · 0.85

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected