Skip to main content

prune

Function prune 

Source
pub fn prune(
    input: &[u8],
    options: &LossyOptions,
    estimator: &dyn TokenEstimator,
) -> Result<Option<PruneOutcome>, JsonPruneError>
Expand description

Runs tiered lossy selection over input. Returns Ok(None) when there’s nothing eligible to prune (no arrays of length >= [MIN_ARRAY_LEN] outside preserved paths, or ratio >= 1.0) — callers should treat that as a clean no-op, not force an empty transform report.