rca_report_generate
Generate professional RCA reports in PDF, HTML, Excel, or Markdown with executive summary, root cause ranking, and recommended actions.
Instructions
Generate a styled, professional report from an RCA analysis result.
Supported formats: pdf — Professional PDF with tables, score bars, and styled sections (requires reportlab; falls back to plaintext if not installed) html — Styled HTML with CSS — embeddable in dashboards or emails (requires jinja2; falls back to minimal HTML) excel — 4-sheet Excel workbook: Summary, Root Causes, Actions, Metadata (requires openpyxl) markdown — Plain Markdown; always available; good for GitHub/Slack/Notion
All formats include:
Executive summary with metric cards
Root cause ranking table with priority badges
Recommended actions (IMMEDIATE / MONITOR / TRACK)
Analysis metadata
Optional raw output appendix
Args: params (ReportGenerateInput): - result_id: source RCA result - format: pdf | html | excel | markdown - title: custom report title - include_raw: include model output appendix - save: persist report to storage
Returns: str: JSON with content_b64 (bytes formats), content_text (text formats), byte_size, format, report_id (if saved), storage_path (if saved)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |