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

Function makeLargeContent

agents/e2e/context-pruning-threshold.e2e.test.ts:171–174  ·  view source on GitHub ↗
(prefix: string, size: number)

Source from the content-addressed store, hash-verified

169 'alpha bravo charlie delta echo foxtrot golf hotel india juliett kilo lima mike november oscar papa quebec romeo sierra tango uniform victor whiskey xray yankee zulu '
170
171function makeLargeContent(prefix: string, size: number): string {
172 const repeats = Math.ceil((size - prefix.length) / WORD_FILLER.length)
173 return prefix + WORD_FILLER.repeat(repeats).slice(0, size - prefix.length)
174}
175
176function buildMessageHistory(targetApproxTokens: number): Message[] {
177 const messages: Message[] = []

Callers 1

buildMessageHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected