The sources of my doubts
All the hierarchical process topics I found have no responses:
- Hierarchical process Help
- Hierarchial Process
- Hierarchical process code error help
- Unable to use hierarchical process within virtual env
I myself bumped into a blocking bug that reproduces itself reliably: Agents fail to call each other (and where to edit the system prompt)
Additionally, I found that the manager agent does not interpolate the query, so I see no way to make it decide which task is relevant to the current problem and which is not:
crew.py
return Crew(
tasks=self.tasks,
agents=[ # cannot use self.agents because it includes self.coordinator()
self.content_planner(),
...
self.chief_editor(),
],
manager_agent=self.coordinator(),
process=Process.hierarchical,
verbose=True,
)
main.py
inputs['prompt'] = 'I am in a writing mood. Inspire me with some ideas for ongoing content pieces'
Publishing().crew().kickoff(inputs=inputs)
agentops log:
You are Content Planning Coordinator. You are a skilled coordinator who excels at prioritizing tasks and ensuring that the team's objectives are met.
Your personal goal is: {prompt}
You ONLY have access to the following tools...
...
Review the content backlog: <the first task from tasks.yaml. The task is of another agent>
It offers the coordinator
agent a task that is explicitly connected to the content_planner
agent. This gives us a clue of how to make it start with the correct task. I’ve conducted that experiment too, but the results were even stranger: an implicit agent ‘Crew Manager’, defined by the framework, got the same task and the full list of tools of the task’s correct agent. So Crew Manager attempted to solve a task of Content Planner by himself.
Question
Does someone run a crew that decides which tasks to use and which to bypass as non-relevant on its own?
Maybe you use something other than the hierarchical process?
P.S. I’ve completed ‘Multi AI Agent Systems with crewAI’ and ‘Practical Multi AI Agents and Advanced Use Cases with crewAI.’
There are lessons on hierarchical process, but the lessons do not render how those crews work. Following the course steps you simply:
- define a sequential process (this is the part where you still understand what you’re doing, thanks to preceding lessons)
- switch the param to hierarchical (stepping into terra incognita)
- pray that things will arrange themselves into something relevant (sometimes they do)