-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
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 Hello! I can help with this. Your understanding of using a How
|
Beta Was this translation helpful? Give feedback.

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_keywill capture and pass to the next agent.Hello! I can help with this. Your understanding of using a
SequentialAgentto chain agents is correct. The issue you're facing is a subtle but common one when working with tool-using agents.How
SequentialAgentandoutput_keyWorkA
SequentialAgentexecut…