Skip to content

Commit 16821d1

Browse files
authored
fix: await usage (#310)
2 parents badbe7e + 9a0bc37 commit 16821d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/service/chat_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ async def question_confirm(agent: ListenChatAgent, prompt: str) -> str | Literal
295295
> * **For a Simple Query:** Provide a direct and helpful response.
296296
> * **For a Complex Task:** Your *only* response should be "yes". This will trigger a specialized workforce to handle the task. Do not include any other text, punctuation, or pleasantries.
297297
"""
298-
resp = await agent.step(prompt)
298+
resp = agent.step(prompt)
299299
logger.info(f"resp: {agent.chat_history}")
300300
if resp.msgs[0].content.lower() != "yes":
301301
return sse_json("wait_confirm", {"content": resp.msgs[0].content})
@@ -316,7 +316,7 @@ async def summary_task(agent: ListenChatAgent, task: Task) -> str:
316316
Example format: "Task Name|This is the summary of the task."
317317
Do not include any other text or formatting.
318318
"""
319-
res = await agent.step(prompt)
319+
res = agent.step(prompt)
320320
logger.info(f"summary_task: {res.msgs[0].content}")
321321
return res.msgs[0].content
322322

0 commit comments

Comments
 (0)