MCPcopy Create free account
hub / github.com/InferCore/InferCore / RecordFirstToken

Method RecordFirstToken

internal/slo/memory_engine.go:55–61  ·  view source on GitHub ↗
(requestID string, ts time.Time)

Source from the content-addressed store, hash-verified

53}
54
55func (e *MemoryEngine) RecordFirstToken(requestID string, ts time.Time) {
56 e.mu.Lock()
57 defer e.mu.Unlock()
58 rec := e.ensureRecord(requestID)
59 rec.firstTokenTime = ts
60 e.evictLocked()
61}
62
63func (e *MemoryEngine) RecordCompletion(requestID string, ts time.Time) {
64 e.mu.Lock()

Calls 2

ensureRecordMethod · 0.95
evictLockedMethod · 0.95

Tested by 1