Skip to content

chore: refines transfer_to_agent docstring for more stable agent transfer stability. #466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
9 changes: 8 additions & 1 deletion src/google/adk/tools/transfer_to_agent_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@


def transfer_to_agent(agent_name: str, tool_context: ToolContext):
"""Transfer the question to another agent."""
"""Transfer the question to another agent.

This tool hands off control to another agent when it's more suitable to
answer the user's question according to the agent's description.

Args:
agent_name: the agent name to transfer to.
"""
tool_context.actions.transfer_to_agent = agent_name
Loading