AgentToolDemoAgent

Example demonstrating how to use an AgentTool to provide an agent with the capabilities of another agent as a tool using the Kotlin ADK.

This example showcases:

  1. Defining a specialized sub-agent (e.g., the Chief Engineer).

  2. Wrapping the sub-agent in an AgentTool.

  3. Providing the AgentTool to a primary agent (e.g., Captain Kirk) which can delegate tasks.

Properties

Link copied to clipboard
@JvmField
val chiefEngineer: LlmAgent

Defines a specialized sub-agent.

Link copied to clipboard
@JvmField
val rootAgent: LlmAgent

Defines the central LlmAgent that will be run.