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

disallow_transfer_to_parent is confusing

Open vinithbudde-gif opened this issue 1 month ago • 1 comments

Describe the bug

disallow_transfer_to_parent is confusing

Expected behavior

Per its naming it should disallow transfer to parent when its True. But, its contradictory based on below attached screenshots (First 3). Per last screenshot, this flag is mentioned in documentation but doesn't have an explanation.

Screenshots

Image Image Image Image

Versions

  • OS: [e.g. Windows, Mac, Linux]
  • ADK version:
  • Python version:

Additional context

Add any other context about the problem here.

vinithbudde-gif avatar Oct 27 '25 21:10 vinithbudde-gif

Here's the definition of disallow_transfer_to_parent

Disallows LLM-controlled transferring to the parent agent.
NOTE: Setting this as True also prevents this agent from continuing to reply to the end-user, and will transfer control back to the parent agent in the next turn. This behavior prevents one-way transfer, in which end-user may be stuck with one agent that cannot transfer to other agents in the agent tree.

I couldn’t find a clear explanation in the ADK docs either. But after adding this to my code, the description finally showed up. Hope it helps you.

Image

Also you can find the definition here

chungFTF avatar Dec 02 '25 09:12 chungFTF