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

Method storeUserPrompt

coderd/x/chatd/configcache.go:400–409  ·  view source on GitHub ↗
(epoch uint64, userID uuid.UUID, prompt string)

Source from the content-addressed store, hash-verified

398}
399
400func (c *chatConfigCache) storeUserPrompt(epoch uint64, userID uuid.UUID, prompt string) {
401 c.mu.Lock()
402 defer c.mu.Unlock()
403
404 if c.userPromptEpoch != epoch {
405 return
406 }
407
408 c.userPrompts.Set(userID, prompt, chatConfigUserPromptTTL)
409}
410
411func (c *chatConfigCache) InvalidateModelConfig(id uuid.UUID) {
412 c.mu.Lock()

Callers 1

UserPromptMethod · 0.95

Calls 3

SetMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected