Skip to main content

flatten_content

Function flatten_content 

Source
pub fn flatten_content(val: &Value) -> String
Expand description

Flatten content that may be a string or array of content blocks. Extracts text from text blocks and tool names from tool_use blocks.