fn apply_prefix<'a>(
        &self,
        content: &'a str,
        char_count: usize,
        limit: usize,
    ) -> ClipperResult<'a> {
        if char_count <= limit {
            return ClipperResult { prefix: None, suffix: None, actual: content };
        }

        // Find the byte index corresponding to the character limit
        let byte_idx = content
            .char_indices()
            .nth(limit)
            .map_or(content.len(), |(idx, _)| idx);

        ClipperResult { prefix: Some(0..byte_idx), suffix: None, actual: content }
    }
Helper method to truncate content from the beginning
crates/forge_services/src/clipper.rs