Parse stdin content as a typed [`StructuredOutput`] payload. Validates against the schema at parse time: required fields (headline, status) must be present; the status enum must be one of `partial|complete|blocked|error`; every evidence variant's required fields must be present. Unknown top-level fields are tolerated for forward-compatibility.
(s: &str)
| 235 | /// every evidence variant's required fields must be present. Unknown top-level |
| 236 | /// fields are tolerated for forward-compatibility. |
| 237 | pub fn parse_payload(s: &str) -> Result<StructuredOutput> { |
| 238 | serde_json::from_str::<StructuredOutput>(s) |
| 239 | .context("reply payload must be valid JSON (StructuredOutput shape — see `flowtrace explain reply`)") |
| 240 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…