Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: The problem is that your sub-agent's execution turn ends immediately after the MCP tool call. To fix this, you need to refine each sub-agent's instruction to be more explicit, telling it to first call the tool and then process the tool's output to generate a final text response. This final response is what output_key will capture and pass to the next agent.


Hello! I can help with this. Your understanding of using a SequentialAgent to chain agents is correct. The issue you're facing is a subtle but common one when working with tool-using agents.

How SequentialAgent and output_key Work

A SequentialAgent execut…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@soccernee
Comment options

Answer selected by soccernee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants