添加消息
(self, message_type: str, content: str)
| 142 | self.add_message(get_text("系统", "System"), get_text("🚀 开始运行所有Research Agent", "🚀 Starting all Research Agents")) |
| 143 | |
| 144 | def add_message(self, message_type: str, content: str): |
| 145 | """添加消息""" |
| 146 | timestamp = datetime.now().strftime("%H:%M:%S") |
| 147 | new_message = f"[{timestamp}] {message_type}: {content}" |
| 148 | self.messages.append(new_message) |
| 149 | |
| 150 | def should_update_display(self) -> bool: |
| 151 | """检查是否需要更新显示(内容是否发生变化)""" |
no outgoing calls
no test coverage detected