(userID uuid.UUID)
| 383 | } |
| 384 | |
| 385 | func (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 | |
| 393 | func (c *chatConfigCache) currentUserPromptEpoch() uint64 { |
| 394 | c.mu.RLock() |