Skip to content
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