MCPcopy Index your code
hub / github.com/Noumena-Network/code / cloneContentReplacementState

Function cloneContentReplacementState

src/utils/toolResultStorage.ts:424–431  ·  view source on GitHub ↗
(
  source: ContentReplacementState,
)

Source from the content-addressed store, hash-verified

422 * prompt cache hit. Mutating the clone does not affect the source.
423 */
424export function cloneContentReplacementState(
425 source: ContentReplacementState,
426): ContentReplacementState {
427 return {
428 seenIds: new Set(source.seenIds),
429 replacements: new Map(source.replacements),
430 }
431}
432
433/**
434 * Resolve the per-message aggregate budget limit. GrowthBook override

Callers 2

createSubagentContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected