Update crew.py
Browse files
crew.py
CHANGED
|
@@ -204,7 +204,7 @@ def run_crew(question, file_path):
|
|
| 204 |
backstory="As an expert web search assistant, you search the web to help answer the question.",
|
| 205 |
allow_delegation=False,
|
| 206 |
llm=AGENT_MODEL,
|
| 207 |
-
max_iter=
|
| 208 |
tools=[web_search_tool, web_rag_tool],
|
| 209 |
verbose=False
|
| 210 |
)
|
|
@@ -215,7 +215,7 @@ def run_crew(question, file_path):
|
|
| 215 |
backstory="As an expert audio analysis assistant, you analyze the audio to help answer the question.",
|
| 216 |
allow_delegation=False,
|
| 217 |
llm=AGENT_MODEL,
|
| 218 |
-
max_iter=
|
| 219 |
tools=[audio_analysis_tool],
|
| 220 |
verbose=False
|
| 221 |
)
|
|
@@ -226,7 +226,7 @@ def run_crew(question, file_path):
|
|
| 226 |
backstory="As an expert image analysis assistant, you analyze the image to help answer the question.",
|
| 227 |
allow_delegation=False,
|
| 228 |
llm=AGENT_MODEL,
|
| 229 |
-
max_iter=
|
| 230 |
tools=[image_analysis_tool],
|
| 231 |
verbose=False
|
| 232 |
)
|
|
@@ -237,7 +237,7 @@ def run_crew(question, file_path):
|
|
| 237 |
backstory="As an expert YouTube audio analysis assistant, you analyze the video to help answer the question.",
|
| 238 |
allow_delegation=False,
|
| 239 |
llm=AGENT_MODEL,
|
| 240 |
-
max_iter=
|
| 241 |
tools=[youtube_audio_analysis_tool],
|
| 242 |
verbose=False
|
| 243 |
)
|
|
@@ -248,7 +248,7 @@ def run_crew(question, file_path):
|
|
| 248 |
backstory="As an expert YouTube image analysis assistant, you analyze the video to help answer the question.",
|
| 249 |
allow_delegation=False,
|
| 250 |
llm=AGENT_MODEL,
|
| 251 |
-
max_iter=
|
| 252 |
tools=[youtube_image_analysis_tool],
|
| 253 |
verbose=False
|
| 254 |
)
|
|
@@ -259,7 +259,7 @@ def run_crew(question, file_path):
|
|
| 259 |
backstory="As an expert Python coding assistant, you write and/or execute Python code to help answer the question.",
|
| 260 |
allow_delegation=False,
|
| 261 |
llm=AGENT_MODEL,
|
| 262 |
-
max_iter=
|
| 263 |
tools=[python_coding_tool],
|
| 264 |
verbose=False
|
| 265 |
)
|
|
@@ -272,7 +272,7 @@ def run_crew(question, file_path):
|
|
| 272 |
backstory="As an expert manager assistant, you answer the question.",
|
| 273 |
allow_delegation=True,
|
| 274 |
llm=MANAGER_MODEL,
|
| 275 |
-
max_iter=
|
| 276 |
verbose=True
|
| 277 |
)
|
| 278 |
|
|
|
|
| 204 |
backstory="As an expert web search assistant, you search the web to help answer the question.",
|
| 205 |
allow_delegation=False,
|
| 206 |
llm=AGENT_MODEL,
|
| 207 |
+
max_iter=2,
|
| 208 |
tools=[web_search_tool, web_rag_tool],
|
| 209 |
verbose=False
|
| 210 |
)
|
|
|
|
| 215 |
backstory="As an expert audio analysis assistant, you analyze the audio to help answer the question.",
|
| 216 |
allow_delegation=False,
|
| 217 |
llm=AGENT_MODEL,
|
| 218 |
+
max_iter=2,
|
| 219 |
tools=[audio_analysis_tool],
|
| 220 |
verbose=False
|
| 221 |
)
|
|
|
|
| 226 |
backstory="As an expert image analysis assistant, you analyze the image to help answer the question.",
|
| 227 |
allow_delegation=False,
|
| 228 |
llm=AGENT_MODEL,
|
| 229 |
+
max_iter=2,
|
| 230 |
tools=[image_analysis_tool],
|
| 231 |
verbose=False
|
| 232 |
)
|
|
|
|
| 237 |
backstory="As an expert YouTube audio analysis assistant, you analyze the video to help answer the question.",
|
| 238 |
allow_delegation=False,
|
| 239 |
llm=AGENT_MODEL,
|
| 240 |
+
max_iter=2,
|
| 241 |
tools=[youtube_audio_analysis_tool],
|
| 242 |
verbose=False
|
| 243 |
)
|
|
|
|
| 248 |
backstory="As an expert YouTube image analysis assistant, you analyze the video to help answer the question.",
|
| 249 |
allow_delegation=False,
|
| 250 |
llm=AGENT_MODEL,
|
| 251 |
+
max_iter=2,
|
| 252 |
tools=[youtube_image_analysis_tool],
|
| 253 |
verbose=False
|
| 254 |
)
|
|
|
|
| 259 |
backstory="As an expert Python coding assistant, you write and/or execute Python code to help answer the question.",
|
| 260 |
allow_delegation=False,
|
| 261 |
llm=AGENT_MODEL,
|
| 262 |
+
max_iter=5,
|
| 263 |
tools=[python_coding_tool],
|
| 264 |
verbose=False
|
| 265 |
)
|
|
|
|
| 272 |
backstory="As an expert manager assistant, you answer the question.",
|
| 273 |
allow_delegation=True,
|
| 274 |
llm=MANAGER_MODEL,
|
| 275 |
+
max_iter=10,
|
| 276 |
verbose=True
|
| 277 |
)
|
| 278 |
|