pub fn truncate_message(
message: Message,
config: &MessageTruncationConfig,
) -> MessageTruncationResultExpand description
Compress content fields inside message blocks so the total serialised size
fits within the budget. Delegates to the configured ContentCompressor.