Description
** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.
Describe the bug
I am running a sequential chain with 2 sub-agents. However, the first agent replies to the user query with a final answer, before the second agent is ever called.
To Reproduce
Steps to reproduce the behavior:
- Create a Sequential agent with 2+ sub-agents
- Give all but the last sub_agent an output_key
- Run them from a root_agent
Expected behavior
Only the last agent in the chain should product a final response. The ones before should only write to output_key.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: macos
- Python version(python -V): 3.9
- ADK version(pip show google-adk): 1.5.0
Model Information:
Tried wiht both 2.5 flash and 2.0-flash-lite
Additional context
The problem is not deterministic but occurs in most of the calls, which makes it even more unpredictable.
Agent hosted on VertexAI AgentEngine.