Skip to main content

apply_sampling_override

Function apply_sampling_override 

Source
pub fn apply_sampling_override<B: TextSamplingControlBackend, C: TokenFilterController>(
    boundary: &mut TextContinuationBoundary<'_, '_, B, C>,
    request: SamplingOverride,
) -> Result<SamplingStateFacts, SamplingOverrideError<B::Error>>
Expand description

Validates and applies one future sampling change at a proven native and record boundary. Stochastic-to-greedy retains RNG; switching back resumes that stream. A run created without an RNG needs an explicit seed to become stochastic.