Welcome to The AI Language official repository for Google Agent Development Kit (ADK) sample applications. This collection is designed to provide practical, hands-on examples of how to build powerful and creative agents using the ADK framework.
The goal of this repository is to showcase different architectural patterns—from simple, single-purpose agents to complex, multi-agent systems. Each project is self-contained and includes a detailed README.md
with specific setup and usage instructions.
This collection is actively growing. Below are the current agent examples available.
- Architecture: Single-Agent System
- Description: A minimal ADK application featuring a single LLM-powered agent. It takes a natural language prompt (e.g., "create a page with a blue button") and generates a complete, self-contained HTML file.
- Best for: Understanding the fundamentals of an ADK agent, including instructions, tools, and basic I/O.
- ➡️ For detailed instructions, see the
README.md
inside theversion_1_website_builder_simple/
directory.
- Architecture: Multi-Agent, Sequential Orchestration
- Description: A more advanced system where a "root" agent orchestrates a team of specialized agents in a sequence to build a website. This mimics a real-world development workflow:
Requirements Writer
->Designer
->Code Writer
. - Best for: Learning how to build complex workflows by chaining agents together, where the output of one agent becomes the input for the next.
- ➡️ For detailed instructions, see the
README.md
inside theversion_2_sequential_website_agent/
directory.
We will be adding more agents over time to demonstrate other patterns like parallel execution, agents with memory, and more complex tool usage.
While each project has its own specific dependencies, the following setup steps are common to all agents in this repository.
git clone https://github.com/theailanguage/adk_samples.git
To use the agents, you need a Google API key.
-
Navigate into the specific project folder you want to run (e.g.,
version_2_sequential_website_agent
). -
Create a file named
.env
in that directory. -
Add your API key to the
.env
file:GOOGLE_API_KEY=your-google-api-key GOOGLE_GENAI_USE_VERTEXAI=FALSE
You can get a free API key from Google AI Studio.
Each project should be run in its own virtual environment to manage dependencies.
# Navigate to the project you want to run
cd path/to/specific_agent_project
# Create and activate a virtual environment using uv
uv venv
source .venv/bin/activate # On Windows, use: .venv\Scripts\activate.bat
# Install the project's dependencies
uv sync --all-groups
After completing the setup for a specific project, you can run its agent(s) using the ADK web interface.
-
Make sure you are in the project's root directory in your terminal.
-
Launch the ADK web server:
# For projects with a flat agent structure (like v1) cd version_1_website_builder_simple/ adk web ./agents # For projects with a main.py entrypoint (like v2) cd version_2_sequential_website_agent/ adk web ./agents
-
Open your browser and go to
http://localhost:8000
. -
Select the desired agent from the dropdown menu and start interacting with it!
S.No. | Method & Command | Description | When to Use |
---|---|---|---|
1 | ADK Web adk web ./agents |
- Launches a browser-based UI | - Ideal for debugging or quick demos |
2 | ADK API Server adk api_server ./agents |
- Starts an HTTP API server | - Useful for REST API-based automation. |
3 | Programmatic Python Script uv run python3 -m agent_runner |
- Fully code-driven interaction using Python and the ADK SDK | - Ideal for building your own CLI tools or backend pipelines |
4 | ADK CLI Run adk run agents/root_website_builder |
- Command-line way to run a specific agent directly | - Great for quick runs or testing |
This repository and the code within are licensed under the GNU General Public License v3.0. See the LICENSE
file for full details.