Spaces:
Running
Running
Pulastya B commited on
Commit ·
a21477f
1
Parent(s): 91794cf
Show LLM reasoning in summary instead of generic template
Browse files- src/orchestrator.py +10 -5
src/orchestrator.py
CHANGED
|
@@ -1149,13 +1149,18 @@ You are a DOER. Complete workflows based on user intent."""
|
|
| 1149 |
# Build COMPREHENSIVE response template following user's format
|
| 1150 |
summary_lines = []
|
| 1151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1152 |
# Header
|
| 1153 |
summary_lines.extend([
|
| 1154 |
-
"##
|
| 1155 |
-
"",
|
| 1156 |
-
"I have completed the full ML workflow as requested.",
|
| 1157 |
-
"",
|
| 1158 |
-
"Here's a summary of the analysis:",
|
| 1159 |
""
|
| 1160 |
])
|
| 1161 |
|
|
|
|
| 1149 |
# Build COMPREHENSIVE response template following user's format
|
| 1150 |
summary_lines = []
|
| 1151 |
|
| 1152 |
+
# Start with the LLM's actual reasoning/summary
|
| 1153 |
+
if llm_summary and llm_summary.strip() and llm_summary != "Analysis completed":
|
| 1154 |
+
summary_lines.extend([
|
| 1155 |
+
llm_summary.strip(),
|
| 1156 |
+
"",
|
| 1157 |
+
"---",
|
| 1158 |
+
""
|
| 1159 |
+
])
|
| 1160 |
+
|
| 1161 |
# Header
|
| 1162 |
summary_lines.extend([
|
| 1163 |
+
"## 📋 Workflow Summary:",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1164 |
""
|
| 1165 |
])
|
| 1166 |
|