Files
openclaw/src/agents/context-cache.ts
Vincent Koc 041f0b87ec perf(inbound): trim cold startup import graph (#52082)
* perf(inbound): trim cold startup import graph

* chore(reply): drop redundant inline action type import

* fix(inbound): restore warning and maintenance seams

* fix(reply): restore type seam and secure forked transcripts
2026-03-21 22:32:21 -07:00

9 lines
246 B
TypeScript

export const MODEL_CONTEXT_TOKEN_CACHE = new Map<string, number>();
export function lookupCachedContextTokens(modelId?: string): number | undefined {
if (!modelId) {
return undefined;
}
return MODEL_CONTEXT_TOKEN_CACHE.get(modelId);
}