dawid-lorek commited on
Commit
92d3c20
·
verified ·
1 Parent(s): ee7947e

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -2
agent.py CHANGED
@@ -112,8 +112,8 @@ Rules:
112
  # Agent answer wrapper
113
  async def answer_question(question: str) -> str:
114
  try:
115
- result = await agent.run(question)
116
- return str(result).strip()
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)