MCPcopy Index your code
hub / github.com/coder/coder / cachedUserPrompt

Method cachedUserPrompt

coderd/x/chatd/configcache.go:385–391  ·  view source on GitHub ↗
(userID uuid.UUID)

Source from the content-addressed store, hash-verified

383}
384
385func (c *chatConfigCache) cachedUserPrompt(userID uuid.UUID) (string, bool) {
386 prompt, _, ok := c.userPrompts.Get(userID)
387 if !ok {
388 return "", false
389 }
390 return prompt, true
391}
392
393func (c *chatConfigCache) currentUserPromptEpoch() uint64 {
394 c.mu.RLock()

Callers 1

UserPromptMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected