Hierarchical crew

Hi,

I’m just starting with CrewAI and agents. Is there any working example of hierarchical crew on latest CrewAI version?

Or is it possible to chain multiple crews to solve complex task?

Like two crews starts simultaneous on two different task and third crew using result of first two crews to give an answer?

Or as last resort maybe it is possible to use sequential crew to implement this?

Maybe you can have a look at these docs.

  1. hierarchical-process, it shows an example.
  2. context attribute of a task. It specifies the prefix tasks of your task.
  3. async_execution attribute of a task. It allows tasks to execute asynchronously, allowing progression without waiting for completion.

But I think the sequential crew with async_execution=true tasks can satisfy your needs. In my opinion, the hierarchical structure is a crew with an agent as a leader who arranges tasks for lower-level agents.

2 Likes

Thanks @ME-Msc!

  1. I already tried suggestion 1 and created GitHub issue
    [BUG] Hierarchical example from documentation doesn't work · Issue #1475 · crewAIInc/crewAI · GitHub

  2. Task.context looks promising

  3. Will try async_execution as well