MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / forgetTraceCacheEntry

Function forgetTraceCacheEntry

web/src/llm-api/chat-completion-trace.ts:67–72  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

65}
66
67function forgetTraceCacheEntry(key: string) {
68 const entry = traceCache.get(key)
69 if (!entry) return
70 traceCache.delete(key)
71 traceCacheMessageHashCount -= entry.messageHashes.length
72}
73
74function buildChatCompletionTraceRecord(params: {
75 body: ChatCompletionRequestBody

Callers 1

rememberTraceCacheEntryFunction · 0.85

Calls 2

deleteMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected