Q: Specify CrewAI Tasks are done in specific sequence using YAML & crew.py
I noticed there are 2 ways to create agents, tasks, and crews. - 1st Approach: Using YAML and @Agent / @Tasks - - 2nd Approach: Writing Agent, Tasks, and Crew all in the crew.py. The question i have is using the 2nd Approach, you list all the tasks in order which I assume explicitly tells the agent the order of the tasks. In the 1st Approach, because you use a YAML & decorator, does this mean the order is defined elsewhere? The reason i ask, is if later I want to add another task that is in-between others, how do I make sure it happens at the right step? Using YAML, the crew looks like this: (NOTE You do not List the Tasks) @crew def crew(self) -> Crew: """Creates the Test CrewAI""" return Crew( agents=self.agents, # Automatically created by the @agent decorator tasks=self.tasks, # Automatically created by the @task decorator process=Process.sequential, verbose=2, ) When writing another way it looks like this: (NOTE You List Tasks in order you want operated) crew = Crew( agents=[ scrape_agent, vector_db_agent, general_research_agent, follow_up_agent, fallback_agent, ], tasks=[ scrape_youtube_channel_task, process_videos_task, find_initial_information_task, follow_up_task, fallback_task, ], process=Process.sequential, )