ADK.Tool.TransferTool (ADK v0.0.1-alpha.1)

Copy Markdown View Source

Auto-generated tool for transferring control to a sub-agent.

When an agent has sub_agents, this tool is automatically injected into its available tools. The LLM calls transfer_to_agent(agent_name) to hand off execution to a sub-agent.

This mirrors Python ADK's transfer_to_agent auto-tool.

Summary

Functions

Build a transfer tool for the given list of sub-agents.

The canonical tool name.

Functions

new(sub_agents)

@spec new([ADK.Agent.t()]) :: ADK.Tool.FunctionTool.t()

Build a transfer tool for the given list of sub-agents.

tool_name()

@spec tool_name() :: String.t()

The canonical tool name.