IMPORTANT: How to use manager_agent and hierarchical mode correctly? #1220
Replies: 8 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks.
|
Beta Was this translation helpful? Give feedback.
-
Same troubles, puzzled with planning, hierarchical process and manager agent/llm - did't see any comprehensive documentation or samples, my code is constantly throwing errors (401 when using manager_llm) or doesn't use any of the agents in execution besides the manager agent (when setting manager_agent) |
Beta Was this translation helpful? Give feedback.
-
crew = Crew(
) My intention was like below to separate agent and task: I tried this code, manager agent ran all the tasks. I can still get a right answer if I move each task to each agent's prompt. But I believe separating task & agent has a benefit(and I guess that's why how crew ai designed that way?) Q1 - can I still have multiple tasks when I use manager agent? |
Beta Was this translation helpful? Give feedback.
-
Maybe should we create issue, cause manager_llm/manager_agent functionality is working unexpected? |
Beta Was this translation helpful? Give feedback.
-
same here, manager is running all the tasks |
Beta Was this translation helpful? Give feedback.
-
Same here |
Beta Was this translation helpful? Give feedback.
-
I invite you all to check out this CrewAI community thread, which dives into exactly this topic. There, I shared two working code examples: one using the classic approach with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Are the conditions for using manager_agent and hierarchical mode correct? Couldn't find out the official detailed explanations.
"""
crew = Crew(
agents=[
researcher_agent,
...
],
tasks=[
research_task,
...
manager_task
],
verbose=2,
process=Process.hierarchical,
manager_agent=manager_agent,
}
Beta Was this translation helpful? Give feedback.
All reactions