Google ADK provides powerful pre-built tools that are optimized for performance and reliability. These tools integrate seamlessly with Gemini models and provide essential capabilities like web search and code execution.
Sign in to save downloads to your library and vote.
Preview
๐ Built-in Tools
Google ADK provides powerful pre-built tools that are optimized for performance and reliability. These tools integrate seamlessly with Gemini models and provide essential capabilities like web search and code execution.
๐ฏ What You'll Learn
- Search Tool: Web search capabilities for real-time information
- Code Execution Tool: Safe Python code execution environment
- Tool Limitations: Understanding when to use built-in vs custom tools
- Best Practices: Optimizing built-in tool usage
๐ง Core Concept: Built-in Tools
Built-in tools are Google ADK's native capabilities that provide:
- High Performance: Optimized for speed and reliability
- Safety: Built-in security and sandboxing
- Gemini Integration: Deep integration with Google's models
- Maintenance-free: No custom code to maintain
Important Limitations
- โ ๏ธ Gemini Models Only: Built-in tools work only with Gemini models
- โ ๏ธ Single Tool Type: Cannot mix built-in and custom tools in same agent
- โ ๏ธ Limited Customization: Fixed functionality, cannot modify behavior
๐ง Available Built-in Tools
1. Search Tool
- Purpose: Web search for real-time information
- Use Cases: News, facts, current events, research
- Benefits: Fast, accurate, up-to-date results
2. Code Execution Tool
- Purpose: Execute Python code safely
- Use Cases: Calculations, data processing, algorithms
- Benefits: Secure sandbox environment
3. RAG Tools (Advanced)
- Purpose: Retrieval-augmented generation
- Use Cases: Document search, knowledge bases
- Benefits: Efficient information retrieval
๐ Tutorial Examples
This sub-example includes two practical implementations:
๐ Search Agent
Location: ./search_agent/
- Implements web search capabilities
- Handles real-time information queries
- Demonstrates search result processing
๐ Code Execution Agent
Location: ./code_exec_agent/
- Executes Python code safely
- Performs mathematical calculations
- Processes data dynamically
๐ Project Structure
1_builtin_tools/
โโโ README.md # This file - built-in tools guide
โโโ search_agent/ # Web search implementation
โ โโโ __init__.py # Makes it a Python package
โ โโโ agent.py # Search agent with Search Tool
โโโ code_exec_agent/ # Code execution implementation
โ โโโ __init__.py # Makes it a Python package
โ โโโ agent.py # Code execution agent
โโโ requirements.txt # Dependencies for built-in tools
โโโ .env.example # Example API key configuration
๐ฏ Learning Objectives
By the end of this sub-example, you'll understand:
- โ How to use Google ADK's Search Tool effectively
- โ How to implement safe code execution with built-in tools
- โ When to choose built-in tools over custom solutions
- โ Limitations and best practices for built-in tools
๐ Getting Started
-
Set up your environment:
cd 4_1_builtin_tools # Copy the environment template cp env.example .env # Edit .env and add your Google AI API key # Get your API key from: https://aistudio.google.com/ -
Install dependencies:
# Install required packages pip install -r requirements.txt -
Run the agents:
# Start the ADK web interface adk web # In the web interface, select either: # - search_agent: For trying web search capabilities # - code_exec_agent: For testing code execution features
๐ก Pro Tips
- Use for Real-time Data: Perfect for current information needs
- Leverage Gemini Integration: Built-in tools are optimized for Gemini
- Simple is Better: Don't overcomplicate with custom tools if built-in works
- Test Thoroughly: Understand tool behavior before production use
๐ง Common Use Cases
Search Tool Applications
- News Updates: Get latest news on topics
- Fact Checking: Verify information accuracy
- Research: Gather information on subjects
- Market Data: Current prices, trends
Code Execution Applications
- Mathematical Calculations: Complex computations
- Data Analysis: Process and analyze data
- Algorithm Implementation: Test code logic
- Visualization: Generate charts and graphs
๐จ Important Notes
- Model Dependency: Only works with Gemini models
- No Mixing: Cannot combine with custom tools
- Production Ready: Built-in tools are enterprise-ready
- Rate Limits: Be aware of usage limits
Ingestion metadata
- Source catalog
- awesome-llm-apps
- Repository
- Shubhamsaboo/awesome-llm-apps ยท main
- File path
- ai_agent_framework_crash_course/google_adk_crash_course/4_tool_using_agent/4_1_builtin_tools/README.md
- Last refreshed
- 7/24/2026, 3:00:13 AM (52m ago)
- Refresh schedule
- Daily ยท 03:00 UTC
- Dedupe status
- Unique ยท deduped by (source, url)