pub fn parse_response(content: &str) -> Result<Vec<ResponsePart>>Expand description
Splits a full model response into text and parsed A2UI blocks.
§Errors
Returns Error::Parse when the response contains no A2UI block, when a
block is empty, when a block is unterminated, or when a block’s content is
not JSON even after repair.