crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Create multiple crews?

Open mattian7 opened this issue 1 year ago • 1 comments

If I want to use crew() to create multiple crew, how does new crew receive previous outcome from the last crew? An example would be appreciate.

Here is the reason I have this issue: In a series of cases, the workflow of a job is not always pipeline. One task/crew may need to use the experience from at least 2 previous tasks/crews (in a parallel way). Consider that the tasks can only be solved in a serial way in one crew, I have to create multiple crew.

mattian7 avatar Jan 11 '24 07:01 mattian7

I think the Landing Page example in crewAI-examples demonstrates that.

check it out https://github.com/joaomdmoura/crewAI-examples/tree/main/landing_page_generator

okoliechykwuka avatar Jan 11 '24 09:01 okoliechykwuka

Exactly what @okoliechykwuka you should be able to create multiple ones and pass the outcome of one into the other. You can also pass the outcome of individual tasks, as those are available at task.output if you want to.

joaomdmoura avatar Jan 21 '24 15:01 joaomdmoura