ModernMewtwo26 commited on
Commit
51e67e0
·
verified ·
1 Parent(s): ca1a417

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -39,6 +39,8 @@ agent = CodeAgent(
39
  model=model,
40
  tools=[construct_course_search_query, search_tool, final_answer],
41
  max_steps=5, # Reduced from 9 to limit automatic progression
 
 
42
  verbosity_level=2, # Increased for more detailed logging
43
  grammar=None,
44
  planning_interval=None,
 
39
  model=model,
40
  tools=[construct_course_search_query, search_tool, final_answer],
41
  max_steps=5, # Reduced from 9 to limit automatic progression
42
+ step_time_limit=30, # Maximum seconds per step (prevents long-running operations)
43
+ planning_interval=1, # Forces planning every step instead of None
44
  verbosity_level=2, # Increased for more detailed logging
45
  grammar=None,
46
  planning_interval=None,