AntonVoronko commited on
Commit
9be8a12
·
verified ·
1 Parent(s): f24f61d

even more async

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ class BasicAgent:
26
  llm = Groq(model="qwen-qwq-32b", api_key=api_key)
27
  self.agent = ReActAgent(tools=[search_tool], llm=llm)
28
  print("BasicAgent initialized.")
29
- def __call__(self, question: str) -> str:
30
  print(f"Agent received question (first 50 chars): {question[:50]}...")
31
  fixed_answer = await self.agent.run(question)
32
  print(f"Agent returning fixed answer: {fixed_answer}")
 
26
  llm = Groq(model="qwen-qwq-32b", api_key=api_key)
27
  self.agent = ReActAgent(tools=[search_tool], llm=llm)
28
  print("BasicAgent initialized.")
29
+ async def __call__(self, question: str) -> str:
30
  print(f"Agent received question (first 50 chars): {question[:50]}...")
31
  fixed_answer = await self.agent.run(question)
32
  print(f"Agent returning fixed answer: {fixed_answer}")