Error passing outputs between agents

Finally, my last agent is taking the output of previous agent. I had to redefine the agents and tasks iteratively until I achieved the desired outcome.