diff --git a/python/valuecell/agents/auto_trading_agent/agent.py b/python/valuecell/agents/auto_trading_agent/agent.py index 4d60b4cd4..cb3c8baa8 100644 --- a/python/valuecell/agents/auto_trading_agent/agent.py +++ b/python/valuecell/agents/auto_trading_agent/agent.py @@ -823,14 +823,18 @@ async def stream( # Handle stop commands if any( - cmd in query_lower.split() for cmd in ["stop", "pause", "halt", "停止", "暂停"] + cmd in query_lower.split() + for cmd in ["stop", "pause", "halt", "停止", "暂停"] ): async for response in self._handle_stop_command(session_id, query): yield response return # Handle status query commands - if any(cmd in query_lower.split() for cmd in ["status", "summary", "状态", "摘要"]): + if any( + cmd in query_lower.split() + for cmd in ["status", "summary", "状态", "摘要"] + ): async for response in self._handle_status_command(session_id): yield response return