Structured output #322
-
Hi, I tried using structured output in ADK. Following are my observations. Structured output is a big plus, as this can help do agent orchestration as well. Unlocking this will really help with usability of ADK. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try making a dedicated structured output LLMAgent, give it to a higher level agent as an AgentTool, and also give the tools you want to use alongside structured output to that higher level agent. I haven't tried this yet but it is what I was planning on doing based on reading the docs. You can also make a tool that returns the args as structured output. But seems structured output + tool calling in one LLMAgent is explicitly not supported right now. |
Beta Was this translation helpful? Give feedback.
Try making a dedicated structured output LLMAgent, give it to a higher level agent as an AgentTool, and also give the tools you want to use alongside structured output to that higher level agent. I haven't tried this yet but it is what I was planning on doing based on reading the docs. You can also make a tool that returns the args as structured output.
But seems structured output + tool calling in one LLMAgent is explicitly not supported right now.