src.llm_interpreter.render.business_assembler¶
Business report assembler for executive/CMO reporting.
This module creates action-oriented business reports with strategic recommendations, ROI analysis, and implementation roadmaps. Last Modified: 2025-04-10
Module Contents¶
- class src.llm_interpreter.render.business_assembler.BusinessReportAssembler(results_dir: pathlib.Path, config_path: pathlib.Path)¶
Assembles executive/CMO-focused business reports.
Generates action-oriented reports with strategic recommendations, ROI analysis, and implementation timelines.
- load_and_analyze()¶
Load data and run business analysis.
- build_title_section() str¶
Build report title and metadata.
- build_executive_summary() str¶
Build executive summary section.
- build_highlights() str¶
Build concise highlights section with key metrics and top channels.
- build_key_findings() str¶
Build key findings section.
- build_strategic_recommendations() str¶
Build strategic recommendations section.
- build_budget_optimization() str¶
Build budget optimization section.
- build_channel_performance() str¶
Build channel performance summary.
- build_commercial_second_order_insights() str¶
Build a concise section surfacing commercial insights and second-order effects.
- build_quick_wins() str¶
Build quick wins section.
- build_implementation_timeline() str¶
Build implementation timeline.
- build_risks_and_mitigations() str¶
Build risks and mitigations section.
- assemble_report() str¶
Assemble complete business report.
- Returns:
Complete markdown business report
- save_report(output_path: pathlib.Path)¶
Assemble and save business report to file.
- Parameters:
output_path – Path to save markdown report
- src.llm_interpreter.render.business_assembler.generate_business_report(results_dir: pathlib.Path, config_path: pathlib.Path, output_path: pathlib.Path) str¶
Generate complete business/executive report.
- Parameters:
results_dir – Directory containing results (csv/ and png/ subdirs)
config_path – Path to YAML config file
output_path – Path to save markdown report
- Returns:
Report content as string
Example
>>> from pathlib import Path >>> from src.llm_interpreter.render import generate_business_report >>> >>> report = generate_business_report( ... results_dir=Path("results"), ... config_path=Path("demo/demo_config.yml"), ... output_path=Path("results/markdown/business_report.md") ... ) >>> print(f"Generated {len(report)} character executive report")