pub fn compute_compaction_threshold( configured_threshold: u64, model_context_window: u64, reserved_output_tokens: u64, autocompact_buffer_tokens: u64, ) -> u64