Crew AI Advanced Study - Process
-
In the Crew system, a Crew can be understood as a team project, with Agents and Tasks being the members and tasks within this team project. The order or structure in which these tasks are carried out requires the use of Crew AI's Process mechanism. Currently, there are two developed Processes.
-
Sequential Processing
This is very simple, as tasks are executed in sequence. In the code, you only need to define a Tasks list when defining the Crew, and it will default to sequential processing. You can also explicitly set the process to be sequential. -
Hierarchical Processing
This is a bit more complex but also flexible enough. Typically, you need to define a manager_llm, which can be understood as a manager that automatically decides the execution order and subset relationships of each task. Of course, you can customize this manager through a prompt.
In practice, if the tasks are too complex and numerous, this manager_llm will not always be 100% accurate. If you want to manually define the task execution order while supporting parallel and serial structures, you can define the callback method when defining tasks to trigger the next task.
-