SergeyO7 commited on
Commit
98eeb83
·
verified ·
1 Parent(s): 05cb108

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -2
agent.py CHANGED
@@ -260,6 +260,7 @@ class MagAgent:
260
  def __init__(self, rate_limiter: Optional[Limiter] = None):
261
  """Initialize the MagAgent with search tools."""
262
  self.rate_limiter = rate_limiter
 
263
  print("Initializing MagAgent with search tools...")
264
  model = LiteLLMModel(
265
  model_id="gemini/gemini-2.0-flash",
@@ -309,8 +310,7 @@ class MagAgent:
309
  # f"Return the answer as a string."
310
  )
311
  print(f"Calling agent.run for task {task_id}...")
312
- response =
313
- await asyncio.to_thread(
314
  self.agent.run,
315
  task=task
316
  )
 
260
  def __init__(self, rate_limiter: Optional[Limiter] = None):
261
  """Initialize the MagAgent with search tools."""
262
  self.rate_limiter = rate_limiter
263
+
264
  print("Initializing MagAgent with search tools...")
265
  model = LiteLLMModel(
266
  model_id="gemini/gemini-2.0-flash",
 
310
  # f"Return the answer as a string."
311
  )
312
  print(f"Calling agent.run for task {task_id}...")
313
+ response = await asyncio.to_thread(
 
314
  self.agent.run,
315
  task=task
316
  )