Skip to main content

harvest

Function harvest 

Source
pub fn harvest(body: &[u8]) -> (Vec<String>, u64)
Expand description

Harvest human-text from any provider-native request JSON: walks the value, collecting strings under text-ish keys (text, content, instructions, string-form system, gemini parts text) plus tool definitions serialized. Returns (texts, message_count) where message_count is the length of the largest messages / contents / input array found (0 if none).