MCPcopy Create free account
hub / github.com/FinStep-AI/ContestTrade / add_message

Method add_message

cli/main.py:144–148  ·  view source on GitHub ↗

添加消息

(self, message_type: str, content: str)

Source from the content-addressed store, hash-verified

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 """检查是否需要更新显示(内容是否发生变化)"""

Calls

no outgoing calls

Tested by

no test coverage detected