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