Update agent.py
Browse files
agent.py
CHANGED
@@ -111,8 +111,8 @@ Rules:
|
|
111 |
)
|
112 |
async def answer_question(question: str) -> str:
|
113 |
try:
|
114 |
-
|
115 |
-
return
|
116 |
except Exception as e:
|
117 |
print("❌ Agent error:", e)
|
118 |
return "[ERROR] " + str(e)
|
|
|
111 |
)
|
112 |
async def answer_question(question: str) -> str:
|
113 |
try:
|
114 |
+
result = await agent.run(question)
|
115 |
+
return result.strip()
|
116 |
except Exception as e:
|
117 |
print("❌ Agent error:", e)
|
118 |
return "[ERROR] " + str(e)
|