Update agent.py
Browse files
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.
|
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]"
|