adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Stuck on a basic problem

Open vansh-pundir-rc opened this issue 1 year ago • 1 comments

I’m currently stuck on a problem. Let’s say I have two agents:

Agent One generates some text using tools.

Since I can't use structuredOutput with tools, I created another agent specifically for structuredOutput.

However, this second agent can’t be a sub-agent of the first one. Secondly, I can’t use it as a tool either. Moreover, I can't run them through a sequentialAgent.

What would be a good workaround for this problem?

vansh-pundir-rc avatar Jun 05 '25 11:06 vansh-pundir-rc

why can't you run them as a sequential agent? also you can use a after_agent_tool callbacks

akshatshaw avatar Jun 05 '25 12:06 akshatshaw