( source: ContentReplacementState, )
| 422 | * prompt cache hit. Mutating the clone does not affect the source. |
| 423 | */ |
| 424 | export 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 |
no outgoing calls
no test coverage detected