pub fn extract_assistant_content(root: &Value) -> Option<String>Expand description
Extract the assistant’s text content from an LLM API response.
Handles various response formats (tried in order):
- OpenAI:
choices[0].message.contentstring or array of content blocks - Anthropic Messages API: root-level
contentarray withtype: "text"blocks output_textfield (some providers)