Amitabhab commited on
Commit
928d0a0
·
1 Parent(s): 2630b50

Changing max_iter from 1 to 2.

Browse files
Files changed (1) hide show
  1. crew.py +10 -10
crew.py CHANGED
@@ -33,7 +33,7 @@ class TravelCrew:
33
  return Agent(
34
  config=self.agents_config['personalized_activity_planner'],
35
  llm=self.llm,
36
- max_iter=1,
37
  tools=[SerperDevTool(), ScrapeWebsiteTool()], # Example of custom tool, loaded at the beginning of file
38
  allow_delegation=False,
39
  )
@@ -49,7 +49,7 @@ class TravelCrew:
49
  return Agent(
50
  config=self.agents_config['restaurant_scout'],
51
  llm=self.llm,
52
- max_iter=1,
53
  tools=[SerperDevTool(), ScrapeWebsiteTool()],
54
  allow_delegation=False,
55
  )
@@ -65,7 +65,7 @@ class TravelCrew:
65
  return Agent(
66
  config=self.agents_config['interest_scout'],
67
  llm=self.llm,
68
- max_iter=1,
69
  tools=[SerperDevTool(), ScrapeWebsiteTool()],
70
  allow_delegation=False,
71
  )
@@ -81,7 +81,7 @@ class TravelCrew:
81
  return Agent(
82
  config=self.agents_config['itinerary_compiler'],
83
  llm=self.llm,
84
- max_iter=1,
85
  allow_delegation=False,
86
  )
87
 
@@ -95,7 +95,7 @@ class TravelCrew:
95
  """
96
  return Task(config=self.tasks_config['interest_scout_task'],
97
  llm=self.llm,
98
- max_iter=1,
99
  agent=self.interest_scout())
100
 
101
  @typing.no_type_check
@@ -109,7 +109,7 @@ class TravelCrew:
109
  return Task(
110
  config=self.tasks_config['personalized_activity_planning_task'],
111
  llm=self.llm,
112
- max_iter=1,
113
  agent=self.personalized_activity_planner(),
114
  )
115
 
@@ -124,7 +124,7 @@ class TravelCrew:
124
  return Task(
125
  config=self.tasks_config['restaurant_scenic_location_scout_task'],
126
  llm=self.llm,
127
- max_iter=1,
128
  agent=self.restaurant_scout(),
129
  )
130
 
@@ -139,7 +139,7 @@ class TravelCrew:
139
  return Task(
140
  config=self.tasks_config['itinerary_compilation_task'],
141
  llm=self.llm,
142
- max_iter=1,
143
  agent=self.itinerary_compiler()
144
  )
145
 
@@ -182,7 +182,7 @@ class AddressSummaryCrew:
182
  return Agent(
183
  config=self.agents_config['address_summarizer'],
184
  llm=self.llm,
185
- max_iter=1,
186
  allow_delegation=False,
187
  )
188
 
@@ -197,7 +197,7 @@ class AddressSummaryCrew:
197
  return Task(
198
  config=self.tasks_config['address_compilation_task'],
199
  llm=self.llm,
200
- max_iter=1,
201
  agent=self.address_summarizer(),
202
  )
203
 
 
33
  return Agent(
34
  config=self.agents_config['personalized_activity_planner'],
35
  llm=self.llm,
36
+ max_iter=2,
37
  tools=[SerperDevTool(), ScrapeWebsiteTool()], # Example of custom tool, loaded at the beginning of file
38
  allow_delegation=False,
39
  )
 
49
  return Agent(
50
  config=self.agents_config['restaurant_scout'],
51
  llm=self.llm,
52
+ max_iter=2,
53
  tools=[SerperDevTool(), ScrapeWebsiteTool()],
54
  allow_delegation=False,
55
  )
 
65
  return Agent(
66
  config=self.agents_config['interest_scout'],
67
  llm=self.llm,
68
+ max_iter=2,
69
  tools=[SerperDevTool(), ScrapeWebsiteTool()],
70
  allow_delegation=False,
71
  )
 
81
  return Agent(
82
  config=self.agents_config['itinerary_compiler'],
83
  llm=self.llm,
84
+ max_iter=2,
85
  allow_delegation=False,
86
  )
87
 
 
95
  """
96
  return Task(config=self.tasks_config['interest_scout_task'],
97
  llm=self.llm,
98
+ max_iter=2,
99
  agent=self.interest_scout())
100
 
101
  @typing.no_type_check
 
109
  return Task(
110
  config=self.tasks_config['personalized_activity_planning_task'],
111
  llm=self.llm,
112
+ max_iter=2,
113
  agent=self.personalized_activity_planner(),
114
  )
115
 
 
124
  return Task(
125
  config=self.tasks_config['restaurant_scenic_location_scout_task'],
126
  llm=self.llm,
127
+ max_iter=2,
128
  agent=self.restaurant_scout(),
129
  )
130
 
 
139
  return Task(
140
  config=self.tasks_config['itinerary_compilation_task'],
141
  llm=self.llm,
142
+ max_iter=2,
143
  agent=self.itinerary_compiler()
144
  )
145
 
 
182
  return Agent(
183
  config=self.agents_config['address_summarizer'],
184
  llm=self.llm,
185
+ max_iter=2,
186
  allow_delegation=False,
187
  )
188
 
 
197
  return Task(
198
  config=self.tasks_config['address_compilation_task'],
199
  llm=self.llm,
200
+ max_iter=2,
201
  agent=self.address_summarizer(),
202
  )
203