Available on crate feature
tools only.Expand description
Tool system and built-in tools.
Give agents capabilities beyond conversation:
FunctionTool- Wrap async functions as toolsGoogleSearchTool- Web searchExitLoopTool- Control loop agentsMcpToolset- MCP server integration
Available with feature: tools
Modules§
Structs§
- AdkError
- Unified structured error type for all ADK-Rust operations.
- Agent
Tool - AgentTool wraps an Agent to make it callable as a Tool.
- Agent
Tool Config - Configuration options for AgentTool behavior.
- Anthropic
Bash Tool20241022 - Anthropic native bash tool declaration for the
bash_20241022version. - Anthropic
Bash Tool20250124 - Anthropic native bash tool declaration for the
bash_20250124version. - Anthropic
Text Editor Tool20250124 - Anthropic native text editor declaration for
text_editor_20250124. - Anthropic
Text Editor Tool20250429 - Anthropic native text editor declaration for
text_editor_20250429. - Anthropic
Text Editor Tool20250728 - Anthropic native text editor declaration for
text_editor_20250728. - Auto
Decline Elicitation Handler - Default handler that declines all elicitation requests.
- Basic
Toolset - A simple toolset that wraps a static list of tools with optional filtering.
- Exit
Loop Tool - Filtered
Toolset - A toolset wrapper that filters tools from an inner toolset using a predicate.
- Function
Tool - Gemini
Code Execution Tool - Gemini built-in code execution tool.
- Gemini
Computer UseTool - Gemini built-in computer use tool declaration.
- Gemini
File Search Tool - Gemini built-in file search tool.
- Google
Maps Context - Contextual Google Maps location used by Gemini retrieval config.
- Google
Maps Tool - Gemini built-in Google Maps grounding tool.
- Google
Search Tool - GoogleSearch is a built-in tool that is automatically invoked by Gemini models to retrieve search results from Google Search. The tool operates internally within the model and does not require or perform local code execution.
- Load
Artifacts Tool - McpHttp
Client Builder - Builder for HTTP-based MCP connections.
- McpTask
Config - Configuration for MCP task-based execution
- McpToolset
- MCP Toolset - connects to an MCP server and exposes its tools as ADK tools.
- Merged
Toolset - A toolset that merges tools from multiple inner toolsets into one.
- OAuth2
Config - OAuth2 configuration for MCP authentication
- OpenAI
Apply Patch Tool - OpenAI apply_patch tool declaration.
- OpenAI
Approximate Location - Approximate user location for OpenAI web search.
- OpenAI
Code Interpreter Tool - OpenAI hosted code interpreter tool.
- OpenAI
Computer UseTool - OpenAI computer use tool declaration.
- OpenAI
File Search Tool - OpenAI hosted file search tool.
- OpenAI
Image Generation Tool - OpenAI hosted image generation tool.
- OpenAI
Local Shell Tool - OpenAI local shell tool declaration.
- OpenAI
McpTool - OpenAI remote MCP tool declaration.
- OpenAI
Shell Tool - OpenAI managed shell tool declaration.
- OpenAI
WebSearch Tool - OpenAI hosted web search tool.
- Prefixed
Toolset - A toolset wrapper that prefixes all tool names from an inner toolset.
- Simple
Tool Context - A lightweight
ToolContextwith sensible defaults for non-agent callers. - Stateful
Tool - A generic tool wrapper that manages shared state for stateful closures.
- UrlContext
Tool - UrlContext is a built-in tool that is automatically invoked by Gemini models to fetch and analyze content from URLs. The tool operates internally within the model and does not require or perform local code execution.
- WebSearch
Tool - WebSearch is a built-in tool for Anthropic Claude models that enables server-side web search. The model searches the web internally and returns results as ServerToolUse / WebSearchToolResult content blocks.
- WebSearch
User Location - Approximate user location for Anthropic’s web search tool.
Enums§
- Gemini
Computer Environment - Target environment for Gemini computer use.
- McpAuth
- Authentication configuration for MCP connections
- OpenAI
Computer Environment - OpenAI computer use environment.
- Resource
Contents
Traits§
- Elicitation
Handler - Trait for handling MCP elicitation requests from servers.
- Tool
- Tool
Context - Toolset
Functions§
- string_
predicate - Creates a predicate that allows only tools with names in the provided list.
Type Aliases§
- Resource
- Resource
Template - Result
- Convenience alias used throughout ADK crates.
Attribute Macros§
- async_
trait - tool
- Attribute macro that generates a
Toolimplementation from an async function.