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

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
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.arun(question)
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)