Skip to main content

write_all_output

Function write_all_output 

Source
pub fn write_all_output(
    result: &EnhancedGenerationResult,
    output_dir: &Path,
) -> Result<(), Box<dyn Error>>
Expand description

Write all generated data to the output directory.

This function exports every non-empty dataset from the generation result. Journal entries are written as a flat CSV file (one row per line item) and as a nested JSON file. Other data is written as JSON files since many model types contain nested structures.