Skip to content

SequentialAgent replying mid-chain #1770

Open
@roman-loosli

Description

@roman-loosli

** 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:

  1. Create a Sequential agent with 2+ sub-agents
  2. Give all but the last sub_agent an output_key
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot_triagedcoreIssues related to the core interface and implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions