Please help me understand how docstrings of tools are passed to the agent. #3793
Replies: 1 comment
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: The Hello! That's a great question about how tool definitions are passed to the agent. Your observation is correct that providing clear instructions is key, but you shouldn't need to duplicate the entire docstring. Here’s a breakdown of the roles of
ExampleLet's say you have a tool function named
In this example, the instruction doesn't repeat what By separating the tool's intrinsic description ( References: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I can't figure out when the docstrings for the tools are passed to the agent. It doesn't happen when the prompt is sent; only the function argument structure is sent. I noticed that my agent flatly refuses to call the tool if I don't add a block to system_instructions with a description for each of the tools, and this looks like a duplication of part of the tool's docstring. How appropriate is it to use part of the docstring as a description?
Beta Was this translation helpful? Give feedback.
All reactions