Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions python/valuecell/agents/auto_trading_agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down