Skip to main content

normalize_tool_result

Function normalize_tool_result 

Source
pub fn normalize_tool_result(
    content: &[ContentBlock],
    auto_resize: bool,
    limits: Option<&ImageResize>,
) -> Option<Vec<ContentBlock>>
Expand description

pi’s normalizeToolResultImages: each image of a tool result processed as for the model, followed by a text block of pi’s notes when there are any. An image that fails keeps its block. None when nothing changed.