crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
20.79k stars 2.87k forks source link

Create multiple crews? #107

Closed mattian7 closed 9 months ago

mattian7 commented 9 months ago

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.

okoliechykwuka commented 9 months ago

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

joaomdmoura commented 9 months ago

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.