azettl commited on
Commit
6416409
·
1 Parent(s): e3b560b

add details about research

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -512,7 +512,7 @@ class VisualConsensusEngine:
512
  "participants": participants,
513
  "messages": all_messages,
514
  "currentSpeaker": None,
515
- "thinking": current_state.get("thinking", []) + ["Research Agent"],
516
  "showBubbles": existing_bubbles + ["Research Agent"]
517
  })
518
  time.sleep(0.5)
@@ -570,7 +570,7 @@ class VisualConsensusEngine:
570
  "participants": participants,
571
  "messages": all_messages,
572
  "currentSpeaker": None,
573
- "thinking": current_state.get("thinking", []),
574
  "showBubbles": existing_bubbles + ["Research Agent"]
575
  })
576
  time.sleep(1.5) # Longer pause to show the detailed completion
@@ -637,11 +637,16 @@ class VisualConsensusEngine:
637
  }
638
  all_messages.append(progress_message)
639
 
 
 
 
 
 
640
  self.update_visual_state({
641
  "participants": participants,
642
  "messages": all_messages,
643
  "currentSpeaker": None,
644
- "thinking": current_state.get("thinking", []) + ["Research Agent"],
645
  "showBubbles": existing_bubbles
646
  })
647
  time.sleep(0.3)
 
512
  "participants": participants,
513
  "messages": all_messages,
514
  "currentSpeaker": None,
515
+ "thinking": [],
516
  "showBubbles": existing_bubbles + ["Research Agent"]
517
  })
518
  time.sleep(0.5)
 
570
  "participants": participants,
571
  "messages": all_messages,
572
  "currentSpeaker": None,
573
+ "thinking": [],
574
  "showBubbles": existing_bubbles + ["Research Agent"]
575
  })
576
  time.sleep(1.5) # Longer pause to show the detailed completion
 
637
  }
638
  all_messages.append(progress_message)
639
 
640
+ # Get current thinking and ALWAYS remove Research Agent
641
+ current_thinking = list(current_state.get("thinking", []))
642
+ if "Research Agent" in current_thinking:
643
+ current_thinking.remove("Research Agent")
644
+
645
  self.update_visual_state({
646
  "participants": participants,
647
  "messages": all_messages,
648
  "currentSpeaker": None,
649
+ "thinking": current_thinking, # Research Agent NEVER in thinking
650
  "showBubbles": existing_bubbles
651
  })
652
  time.sleep(0.3)