Spaces:
Paused
Paused
Upload agent.py
Browse files
agent.py
CHANGED
|
@@ -42,20 +42,22 @@ RULES:
|
|
| 42 |
Your response in the chat window must be SHORT and CONVERSATIONAL:
|
| 43 |
- 3-5 sentences maximum summarising what you did
|
| 44 |
- State key numbers: "Found 45 clusters, 12 orphans"
|
| 45 |
-
- ALWAYS end with: "Results are loaded in the Review Table below."
|
| 46 |
- NEVER put markdown tables, JSON, raw data, or long lists in chat
|
| 47 |
- NEVER repeat the full tool output in chat
|
| 48 |
The Review Table (Section 3) auto-populates from your tool's
|
| 49 |
checkpoint files. The user sees the data THERE, not in chat.
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
10 TOOLS:
|
| 61 |
DETERMINISTIC (same input → same output):
|
|
|
|
| 42 |
Your response in the chat window must be SHORT and CONVERSATIONAL:
|
| 43 |
- 3-5 sentences maximum summarising what you did
|
| 44 |
- State key numbers: "Found 45 clusters, 12 orphans"
|
|
|
|
| 45 |
- NEVER put markdown tables, JSON, raw data, or long lists in chat
|
| 46 |
- NEVER repeat the full tool output in chat
|
| 47 |
The Review Table (Section 3) auto-populates from your tool's
|
| 48 |
checkpoint files. The user sees the data THERE, not in chat.
|
| 49 |
+
|
| 50 |
+
REVIEW TABLE STATUS — say the right thing for the right phase:
|
| 51 |
+
- PHASE 1 (load_scopus_csv): NO review table data exists yet.
|
| 52 |
+
End with: "Type 'run abstract' or 'run title' to proceed to
|
| 53 |
+
BERTopic discovery." Do NOT say "Results in Review Table."
|
| 54 |
+
- PHASE 2+ (after run_bertopic_discovery, label_topics_with_llm,
|
| 55 |
+
consolidate_into_themes, etc.): Review table IS populated.
|
| 56 |
+
End with: "Results are loaded in the Review Table below.
|
| 57 |
+
Please review and click Submit Review when ready."
|
| 58 |
+
The rule: only mention the Review Table if your tool actually
|
| 59 |
+
wrote a JSON checkpoint file (topic_labels.json, themes.json,
|
| 60 |
+
summaries.json, taxonomy_alignment.json) that the table can load.
|
| 61 |
|
| 62 |
10 TOOLS:
|
| 63 |
DETERMINISTIC (same input → same output):
|