pub fn parse_result(
kind: AgentKind,
format: ResultFormat,
stdout: &str,
) -> Result<AgentRun>Expand description
Parses JSON-mode stdout into a normalized AgentRun for kind, per
format. Malformed JSON maps to crate::error::Error::Json.