milindkamat0507 commited on
Commit
c8a2a12
·
verified ·
1 Parent(s): 7fdc531

Upload agent.py

Browse files
Files changed (1) hide show
  1. agent.py +12 -10
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
- Example good response:
51
- "[Phase 2/6 | STOP Gates Passed: 0/6 | Pending Review: Yes]
52
- I ran BERTopic discovery on 1,390 abstracts. Found 98 clusters
53
- (min 3 members each) and 47 orphan sentences. Labelled the top
54
- 100 clusters via Mistral. Results are loaded in the Review Table
55
- below. Please review and Submit when ready."
56
- Example BAD response:
57
- "[Phase 2/6 ...] Here are all 98 clusters: | # | Label | ...
58
- (50 rows of markdown table dumped into chat)"
 
 
 
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):