Skip to main content

compose_text

Function compose_text 

Source
pub fn compose_text(
    text: &str,
    atts: &[Attachment],
    images_as_text: bool,
) -> String
Expand 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).