Suppose output of 2 agents are sent as input of 1 agent. How do we do that?Can i get a sample code please.
You would need to pass the tasks of the first 2 agents in the context of the agent you want to use them as their input.
Example:
agent 1 has task 1
agent 2 has task 2
You want agent 3 to use the result from agent 1 and 2 so you need to pass task 1 and 2 into the context of task 3 for agent 3. Checkout the task docs Tasks - CrewAI
1 Like