Refer to Module 1 Graded Lab
crew = Crew(
. . . ,
# add the list of tasks
tasks=[analyze_code_quality, review_security, make_review_decision],
)
When defining a Crew, tasks are already listed in a specific sequence, which implies that they will execute in order and that later tasks conceptually depend on earlier ones. Given this, it’s unclear why the context parameter is also required in the definition of the Review Decision task earlier in the code
### START CODE HERE ###
# Create the review decision task
make_review_decision = Task(
...
agent=tech_lead,
# add the two previous tasks as context
context=[analyze_code_quality, review_security],
...
)
### END CODE HERE ###
Specifically:
- If
analyze_code_qualityandreview_securityare executed beforemake_review_decisiondue to task ordering in the Crew, why must their outputs be explicitly declared again viacontext? - Is task ordering alone insufficient to ensure that earlier task outputs are available to later tasks? I just don’t understand why duplication?