Skip to main content

paginate

Function paginate 

Source
pub fn paginate(
    text: &str,
    start_index: usize,
    max_length: usize,
) -> (String, bool)
Expand description

Apply start_index and max_length to extracted text.

Returns the slice and whether more remains, so the model knows to continue with a higher start_index — the upstream pagination idiom.