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

Method SetWatcherContext

server/handler.go:127–129  ·  view source on GitHub ↗

SetWatcherContext configures a function that provides K8s watcher context to be prepended to all LLM prompts.

(fn func() string)

Source from the content-addressed store, hash-verified

125// SetWatcherContext configures a function that provides K8s watcher context
126// to be prepended to all LLM prompts.
127func (h *Handler) SetWatcherContext(fn func() string) {
128 h.watcherContextFunc = fn
129}
130
131// SetWatcher configures full watcher integration with context, status, and stats.
132func (h *Handler) SetWatcher(cfg WatcherConfig) {

Calls

no outgoing calls