beyzapehlivan commited on
Commit
208a35f
·
verified ·
1 Parent(s): d544cb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -21,10 +21,11 @@ class AlfredAgent:
21
  self.agent = CodeAgent(
22
  tools=[VisitWebpageTool()],
23
  model=model,
24
- max_steps=12,
25
- add_base_tools=True
 
26
  )
27
- print("AlfredAgent başarıyla kuruldu.")
28
 
29
  def __call__(self, question: str) -> str:
30
  prompt = f"""You are a world-class solver for the GAIA benchmark.
 
21
  self.agent = CodeAgent(
22
  tools=[VisitWebpageTool()],
23
  model=model,
24
+ max_steps=6, # 12'den 6'ya düşürdük, tıkanmaları engelleyecek
25
+ add_base_tools=True,
26
+ planning_interval=2 # Modeli her 2 adımda bir stratejisini gözden geçirmeye zorlar
27
  )
28
+ print("AlfredAgent başarıyla kuruldu. Hızlı mod aktif.")
29
 
30
  def __call__(self, question: str) -> str:
31
  prompt = f"""You are a world-class solver for the GAIA benchmark.