| def build_final_report(title, slotting, picking, insights, heatmap_path): | |
| report = f"## {title}\n\n" | |
| if slotting is not None and not slotting.empty: | |
| report += "### π¦ Slotting Summary\n" | |
| report += "Optimized SKU placement generated based on velocity.\n\n" | |
| if picking is not None and not picking.empty: | |
| report += "### πΆ Picking Route Summary\n" | |
| report += "Optimized path minimizes aisle switching and reduces travel distance.\n\n" | |
| if insights: | |
| report += "### π Operational Insights\n" | |
| report += insights + "\n\n" | |
| if heatmap_path: | |
| report += "### π₯ Heatmap Generated\n\n" | |
| report += "---\nGenerated by **Procelevate Autonomous Warehouse Operator**." | |
| return report | |