Skip to main content

is_image_output

Function is_image_output 

Source
pub fn is_image_output(output: &str) -> bool
Expand 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.