compass.utilities.finalize.compile_run_summary_message#
- compile_run_summary_message(total_seconds, total_cost, out_dir, document_count)[source]#
Create a human-readable summary of a completed run
- Parameters:
total_seconds (
floatorint) – Duration of the run in seconds.total_cost (
floatorintorNone) – Monetary cost incurred by the run.Noneor zero suppresses the cost line in the summary.out_dir (path-like) – Location of the run output directory. The value is embedded in the summary text.
document_count (
int) – Number of documents discovered across all jurisdictions.
- Returns:
str– Summary string formatted for CLI presentation withrichmarkup.
Notes
The function does not perform I/O; callers may log or display the returned string as needed.