Spaces:
Running
Running
Pulastya B
commited on
Commit
·
af8cd44
1
Parent(s):
2b44beb
Fix: Check for both output_path and report_path when extracting reports
Browse files- src/orchestrator.py +5 -4
src/orchestrator.py
CHANGED
|
@@ -1095,9 +1095,10 @@ You are a DOER. Complete workflows based on user intent."""
|
|
| 1095 |
elif "report" in tool.lower() or "dashboard" in tool.lower():
|
| 1096 |
print(f"[DEBUG] Report tool detected: {tool}")
|
| 1097 |
print(f"[DEBUG] nested_result keys: {list(nested_result.keys())}")
|
| 1098 |
-
|
| 1099 |
-
|
| 1100 |
-
|
|
|
|
| 1101 |
artifacts["reports"].append({
|
| 1102 |
"name": tool.replace("_", " ").title(),
|
| 1103 |
"path": report_path,
|
|
@@ -1105,7 +1106,7 @@ You are a DOER. Complete workflows based on user intent."""
|
|
| 1105 |
})
|
| 1106 |
print(f"[DEBUG] Added to artifacts[reports], total reports: {len(artifacts['reports'])}")
|
| 1107 |
else:
|
| 1108 |
-
print(f"[DEBUG] No output_path in nested_result for report tool")
|
| 1109 |
|
| 1110 |
# === COLLECT VISUALIZATION FILES (interactive plots, charts, etc.) ===
|
| 1111 |
elif "plot" in tool.lower() or "visualiz" in tool.lower() or "chart" in tool.lower() or "heatmap" in tool.lower() or "scatter" in tool.lower() or "histogram" in tool.lower():
|
|
|
|
| 1095 |
elif "report" in tool.lower() or "dashboard" in tool.lower():
|
| 1096 |
print(f"[DEBUG] Report tool detected: {tool}")
|
| 1097 |
print(f"[DEBUG] nested_result keys: {list(nested_result.keys())}")
|
| 1098 |
+
# Check for both 'output_path' and 'report_path' keys
|
| 1099 |
+
report_path = nested_result.get("output_path") or nested_result.get("report_path")
|
| 1100 |
+
if report_path:
|
| 1101 |
+
print(f"[DEBUG] Report path found: {report_path}")
|
| 1102 |
artifacts["reports"].append({
|
| 1103 |
"name": tool.replace("_", " ").title(),
|
| 1104 |
"path": report_path,
|
|
|
|
| 1106 |
})
|
| 1107 |
print(f"[DEBUG] Added to artifacts[reports], total reports: {len(artifacts['reports'])}")
|
| 1108 |
else:
|
| 1109 |
+
print(f"[DEBUG] No output_path or report_path in nested_result for report tool")
|
| 1110 |
|
| 1111 |
# === COLLECT VISUALIZATION FILES (interactive plots, charts, etc.) ===
|
| 1112 |
elif "plot" in tool.lower() or "visualiz" in tool.lower() or "chart" in tool.lower() or "heatmap" in tool.lower() or "scatter" in tool.lower() or "histogram" in tool.lower():
|