# AgentToolDemoAgent

object 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

chiefEngineer
Link copied to clipboard
@JvmField
val chiefEngineer: LlmAgent

Defines a specialized sub-agent.

rootAgent
Link copied to clipboard
@JvmField
val rootAgent: LlmAgent

Defines the central LlmAgent that will be run.