MCPcopy Index your code
hub / github.com/promptfoo/promptfoo / currentNamespaceIncludesRepeatIndex

Function currentNamespaceIncludesRepeatIndex

src/cache.ts:165–170  ·  view source on GitHub ↗
(repeatIndex: number)

Source from the content-addressed store, hash-verified

163}
164
165function currentNamespaceIncludesRepeatIndex(repeatIndex: number) {
166 const namespaceParts = getCurrentCacheNamespace()?.split(':') ?? [];
167 return namespaceParts.some(
168 (part, index) => part === 'repeat' && namespaceParts[index + 1] === String(repeatIndex),
169 );
170}
171
172function shouldApplyRepeatCacheSuffix(repeatIndex?: number) {
173 return (

Callers 1

Calls 2

getCurrentCacheNamespaceFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…