pub fn compose_text(
text: &str,
atts: &[Attachment],
images_as_text: bool,
) -> StringExpand description
Merges attachments into prompt text: inlines text files in fenced blocks; converts images to a descriptive line
when images_as_text is true (for agents without image block support).