cowrycode commited on
Commit
fa3f168
·
verified ·
1 Parent(s): 9da7ca0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -47,7 +47,11 @@ class BasicAgent:
47
 
48
  async def run(self, question: str) -> str:
49
  print(f"Agent received question (first 50 chars): {question[:50]}...")
50
- answer = await self.agent.run(question)
 
 
 
 
51
  if hasattr(answer, "output"):
52
  print(f"Agent returning answer: {answer}")
53
  return str(answer.output)
 
47
 
48
  async def run(self, question: str) -> str:
49
  print(f"Agent received question (first 50 chars): {question[:50]}...")
50
+ # answer = await self.agent.run(question)
51
+ answer = await self.agent.run(
52
+ f"{question}\n\nIf you have enough information, respond with a concise final answer.",
53
+ max_iterations=50
54
+ )
55
  if hasattr(answer, "output"):
56
  print(f"Agent returning answer: {answer}")
57
  return str(answer.output)