pub fn is_image_output(output: &str) -> boolExpand description
Return true only for payloads that tool_result_to_messages will map to
an actual image follow-up. Callers use this to avoid retaining malformed
image-shaped JSON without normal result-size bounds.