( source: ContentReplacementState, )
| 403 | * prompt cache hit. Mutating the clone does not affect the source. |
| 404 | */ |
| 405 | export function cloneContentReplacementState( |
| 406 | source: ContentReplacementState, |
| 407 | ): ContentReplacementState { |
| 408 | return { |
| 409 | seenIds: new Set(source.seenIds), |
| 410 | replacements: new Map(source.replacements), |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | /** |
| 415 | * Resolve the per-message aggregate budget limit. GrowthBook override |
no outgoing calls
no test coverage detected