adk-tool
Tool system for Rust Agent Development Kit (ADK-Rust) agents (FunctionTool, MCP, Google Search).
Overview
adk-tool provides the tool infrastructure for the Rust Agent Development Kit (ADK-Rust):
- FunctionTool - Create tools from async Rust functions
- GoogleSearchTool - Web search via Gemini's grounding
- McpToolset - Model Context Protocol integration
- BasicToolset - Group multiple tools together
- ExitLoopTool - Control flow for loop agents
- LoadArtifactsTool - Inject binary artifacts into context
Installation
[]
= "0.1.8"
Or use the meta-crate:
[]
= { = "0.1.8", = ["tools"] }
Quick Start
Function Tool
use FunctionTool;
use ;
async
let tool = new;
MCP Tools
use McpToolset;
use ;
let client = .serve.await?;
let toolset = new
.with_filter;
Google Search
use GoogleSearchTool;
let search = new;
// Add to agent - enables grounded web search
Features
- Type-safe parameter schemas with
schemars - Long-running tool support with progress tracking
- MCP protocol for external tool integration
- Tool filtering and composition
Related Crates
- adk-rust - Meta-crate with all components
- adk-core - Core
Tooltrait - adk-agent - Agents that use tools
License
Apache-2.0
Part of ADK-Rust
This crate is part of the ADK-Rust framework for building AI agents in Rust.