Skip to content

Tools for Agents

智能体工具

Check out the following pre-built tools that you can use with ADK agents:

查看以下可用于 ADK 智能体的预构建工具:

Gemini tools

Google Cloud tools

Third-party tools

Use pre-built tools with ADK agents

使用 ADK 智能体的预构建工具

Follow these general steps to include tools in your ADK agents:

按照这些一般步骤在您的 ADK 智能体中包含工具:

  1. Import: Import the desired tool from the tools module. This is agents.tools in Python, @google/adk in TypeScript, google.golang.org/adk/tool in Go, or com.google.adk.tools in Java.
  2. Configure: Initialize the tool, providing required parameters if any.
  3. Register: Add the initialized tool to the tools list of your Agent.

Once added to an agent, the agent can decide to use the tool based on the user prompt and its instructions. The framework handles the execution of the tool when the agent calls it.

Note: Limitations on using multiple tools

Some ADK tools cannot be used with other tools in the same agent. For more information on tools with these limitations, see Limitations for ADK tools.

Build tools for agents

为智能体构建工具

If the above tools don't meet your needs, you can build tools for your ADK workflows using the following guides:

  • Function Tools: Build custom tools for your specific ADK agent needs.
  • MCP Tools: Connect MCP servers as tools for your ADK agents.
  • OpenAPI Integration: Generate callable tools directly from an OpenAPI Specification.