Have 2 Agents (Agent_1, Agent_2) and 2 tasks (Task_1, Task2)
Task_1 of Agent_1 runs and gets a list of output (City Names, Say 10 cities).
for each of these output of the Task_1 I need to call the Task_2
Task_2’s description must take Task_1 output as a ‘Template variable’ and execute it for all the Values
(Say Task_2 is executed for all the 10 cities one after another )
How do I accomplish this in CrewAI
I dont want to pass it as just context to Task_2 as it not guaranteed to take it as value in Template Valiable which makes my task’s description better
How to pass output of certain agent as input to other agent did not help much
Any complete example / sample code Snippet for this is highly appreciated