dawid-lorek commited on
Commit
79f7a32
·
verified ·
1 Parent(s): 2fcd193

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -73,7 +73,7 @@ Be accurate, be concise, and never guess the format — follow it exactly.
73
  # --- Runner with timeout ---
74
  async def answer_question(question: str) -> str:
75
  try:
76
- result = await asyncio.wait_for(agent.run(question), timeout=60)
77
  return str(result)
78
  except asyncio.TimeoutError:
79
  return "[TIMEOUT]"
 
73
  # --- Runner with timeout ---
74
  async def answer_question(question: str) -> str:
75
  try:
76
+ result = await asyncio.wait_for(agent.aget_response(question), timeout=60)
77
  return str(result)
78
  except asyncio.TimeoutError:
79
  return "[TIMEOUT]"