extract

Function extract 

Source
pub fn extract(result: &mut Value) -> Vec<MediaAttachment>
Expand description

Remove and return any media attachments from a tool result — called by the agent loop so the model receives media as parts, not as base64 JSON noise inside the function response.