bstraehle commited on
Commit
bec1a98
·
verified ·
1 Parent(s): bfd09a6

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +7 -3
crew.py CHANGED
@@ -85,9 +85,13 @@ def run_crew(question, file_name):
85
 
86
  manager_agent = Agent(
87
  role="Manager",
88
- goal="Try to answer the following question. If needed, delegate to **one** of your coworkers, Image Analysis Agent, Python Coding Agent, Video Analysis Agent, or Web Search Agent for help. Question: {topic} ",
89
  backstory="As an expert manager assistant, you answer the question. ",
90
  allow_delegation=True,
 
 
 
 
91
  )
92
 
93
  # Tasks
@@ -118,7 +122,7 @@ def run_crew(question, file_name):
118
 
119
  manager_task = Task(
120
  agent=manager_agent,
121
- description="Try to answer the following question. If needed, delegate to **one** of your coworkers, Image Analysis Agent, Python Coding Agent, Video Analysis Agent, or Web Search Agent for help. Question: {topic} ",
122
  expected_output="The answer to the question. "
123
  )
124
 
@@ -128,7 +132,7 @@ def run_crew(question, file_name):
128
  agents=[image_analysis_agent, python_coding_agent, web_search_agent, video_analysis_agent],
129
  #planning=True,
130
  manager_agent=manager_agent,
131
- manager_llm=MANAGER_MODEL,
132
  process=Process.hierarchical,
133
  #tasks=[image_analysis_task, python_coding_task, web_search_task, video_analysis_task],
134
  tasks=[manager_task],
 
85
 
86
  manager_agent = Agent(
87
  role="Manager",
88
+ goal="Try to answer the following question. If needed, delegate to **one** of your coworkers, Image Analysis Agent, Python Coding Agent, Video Analysis Agent, or Web Search Agent for help. Question: \"{topic}\" ",
89
  backstory="As an expert manager assistant, you answer the question. ",
90
  allow_delegation=True,
91
+ llm=MANAGER_MODEL,
92
+ max_iter=5,
93
+ tools=[manager_tool],
94
+ verbose=False
95
  )
96
 
97
  # Tasks
 
122
 
123
  manager_task = Task(
124
  agent=manager_agent,
125
+ description="Try to answer the following question. If needed, delegate to **one** of your coworkers, Image Analysis Agent, Python Coding Agent, Video Analysis Agent, or Web Search Agent for help. Question: \"{topic}\" ",
126
  expected_output="The answer to the question. "
127
  )
128
 
 
132
  agents=[image_analysis_agent, python_coding_agent, web_search_agent, video_analysis_agent],
133
  #planning=True,
134
  manager_agent=manager_agent,
135
+ #manager_llm=MANAGER_MODEL,
136
  process=Process.hierarchical,
137
  #tasks=[image_analysis_task, python_coding_task, web_search_task, video_analysis_task],
138
  tasks=[manager_task],