Update agent.py
Browse files
agent.py
CHANGED
@@ -113,7 +113,7 @@ Rules:
|
|
113 |
# ✅ Async-only with automatic tool execution
|
114 |
async def answer_question(question: str) -> str:
|
115 |
try:
|
116 |
-
result = await agent.
|
117 |
return result.strip()
|
118 |
except Exception as e:
|
119 |
print("❌ Agent error:", e)
|
|
|
113 |
# ✅ Async-only with automatic tool execution
|
114 |
async def answer_question(question: str) -> str:
|
115 |
try:
|
116 |
+
result = await agent.run(question)
|
117 |
return result.strip()
|
118 |
except Exception as e:
|
119 |
print("❌ Agent error:", e)
|