pub fn build_display_segments(
display_as: Option<&[DisplaySegment]>,
text: &str,
) -> Vec<DisplaySegment>Expand description
Build the prioritized display segments list: tool-provided display_as
segments first, then the raw text as a trailing Text fallback.