dawid-lorek commited on
Commit
3ca6b1b
·
verified ·
1 Parent(s): 81fefb0

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -2
agent.py CHANGED
@@ -111,10 +111,10 @@ Rules:
111
  )
112
 
113
  # ✅ Async-only with automatic tool execution
114
- aSYNC def answer_question(question: str) -> str:
115
  try:
116
  result = await agent.arun(question)
117
  return result.strip()
118
  except Exception as e:
119
  print("❌ Agent error:", e)
120
- return "[ERROR] " + str(e)
 
111
  )
112
 
113
  # ✅ Async-only with automatic tool execution
114
+ async def answer_question(question: str) -> str:
115
  try:
116
  result = await agent.arun(question)
117
  return result.strip()
118
  except Exception as e:
119
  print("❌ Agent error:", e)
120
+ return "[ERROR] " + str(e)