pub async fn load_output_file(
path: impl AsRef<Path>,
) -> Result<BatchOutputData, JsonParseError>
Expand description
ALL-OR-NOTHING loader for the output file.
Reads NDJSON (one BatchResponseRecord
per line).
If any line is invalid, we fail immediately.