pub fn parse_tool_output(text: &str) -> Option<Value>Expand description
A tool result’s fields from whichever form it was stored in: the JSON a
receipt holds, or the rendered text a model was shown (a transcript). Any
JSON parses as itself; rendered text reads back through
parse_rendered_output; None for anything else, such as a [FAILED] …
line.