This folder contains sample agent samples for Python Agent Development Kit (Python ADK).
Each folder in this directory contains a different agent sample.
-
Prerequisites:
- Python Agent Development Kit. See the ADK Quickstart Guide.
- Python 3.9+ and Poetry.
- Access to Google Cloud (Vertex AI) and/or a Gemini API Key (depending on the agent - see individual agent READMEs).
-
Running a Sample Agent:
- Navigate to the specific agent's directory (e.g.,
cd agents/llm-auditor). - Copy the
.env.examplefile to.envand fill in the required environment variables (API keys, project IDs, etc.). See the agent's specific README for details on required variables. - Install dependencies using Poetry:
poetry install - Follow the instructions in the agent's
README.mdto run it (e.g., usingadk run .oradk web).
- Navigate to the specific agent's directory (e.g.,
Check out the agent samples below, organized by category:
| Agent Name | Use Case | Tag | Interaction Type | Complexity | Agent Type | Vertical |
|---|---|---|---|---|---|---|
| Agent Skills Tutorial | Demonstrates 4 ADK skill patterns: inline, file-based, external, and meta (skill-creator). Uses SkillToolset for progressive disclosure of skill metadata, instructions, and resources. | SkillToolset, Skills, Progressive disclosure | Conversational | Easy | Single Agent | Horizontal |
| Academic Research | Assists researchers in identifying recent publications and discovering emerging research areas. | Multi-agent, Custom tool, Evaluation | Workflow | Easy | Multi Agent | Academia |
| Brand Search Optimization | Enrich e-commerce product data by analyzing and comparing top search results. Useful for addressing issues like "Null & low recovery" / "Zero Results" searches and identifies gaps in product data. | Multi-agent, Custom tool, BigQuery connection, Evaluation, Computer use | Workflow | Easy | Multi Agent | Retail |
| Cymbal Home & Garden Customer Service Agent | Customer service, product selection, order management for home improvement, gardening, and related supplies | Custom tool, Async tool, External system calls, Live streaming, Multimodal | Conversational | Advanced | Single Agent | Retail |
| Currency Agent | Agent for currency exchange rate lookups and conversions. | Custom tool | Conversational | Intermediate | Single Agent | Financial Services |
| Data Engineering Agent | Data Engineering Agent designed for building sophisticated BigQuery and Dataform Pipelines | BigQuery, Dataform, ELT Pipelines, Data Curation, Data Modelling, Data Preperation, Data Ingestion, Analytics Engineering, Data Engineering | Conversational | Advanced | Single Agent | Horizontal |
| Data Science Agent | A multi-agent system designed for sophisticated data analysis | Function tool (Python), Agent tool, NL2SQL, Structured data, Database | Conversational | Advanced | Multi Agent | Horizontal |
| Financial Advisor | Assists human financial advisors by providing educational content about topics related to finance and investments. | Risk Analysis, Strategy Generation, Summarization, Report generation | Workflow | Easy | Multi Agent | Financial Services |
| FOMC Research Agent | Market event analysis | Summarization, Report generation | Workflow | Advanced | Multi Agent | Financial Services |
| Deep Search | A blueprint for building a sophisticated, fullstack research agent with Gemini. Demonstrates complex agentic workflows, modular agents, and Human-in-the-Loop (HITL) steps. | Multi-agent, Function calling, Web search, React frontend, FastAPI backend, Human-in-the-Loop | Workflow | Advanced | Multi Agent | Horizontal |
| Gemma Food Tour Guide | A food tour guide that uses Gemma 4 31B and Google Maps MCP to build personalized culinary tours from an image of a dish, location, and budget. | Tool calling, Google Maps MCP, Multimodal input, Route planning | LlmAgent | Intermediate | Single Agent | Travel and local discovery |
| LLM Auditor | Chatbot Response Verification, Content Auditing | Gemini with Google Search, Multi-agent | Workflow | Easy | Multi Agent | Horizontal |
| Marketing Agency | Streamlines new website and product launches. Identifies optimal DNS domains, generates entire websites, develops marketing strategies, and designs brand assets. | Content generation, Website creation, Code generation, Strategy development | Workflow | Easy | Multi Agent | Horizontal |
| Medical Pre-Authorization | Automates the pre-authorization process by analyzing medical records and health policies to instantly determine coverage and eligibility. | Custom tool, Document Analysis, Report Generation | Conversational | Intermediate | Multi Agent | Healthcare |
| Personalized Shopping | Product Recommendations | E-commerce, Personalized agent, Shopping assistant, Single-agent, Product recommendation, Product discovery, Chatbot | Conversational | Easy | Single Agent | E-commerce |
| Vertex AI Retrieval Agent | RAG Powered Agent / Answering questions related to documents uploaded to Vertex AI RAG Engine, providing informative responses with citations to source materials. | RAG engine | Workflow | Intermediate | Single Agent | Horizontal |
| Safety Guardrail Plugins | Safety filter plugins: Gemini as a judge, Model Armor as a filter | Plugin, Security, Guardrail, Jailbreak, Multiagent | Conversational/Workflow | Intermediate | Plugin | Safety &Security |
| Short Movie Agents | Constructs end to end videos based on the user's intent. | Multi-agent, Custom tool | Workflow | Intermediate | Multi Agent | Media |
| Software Bug Assistant | Assists in software bug resolution by querying internal ticketing systems and external knowledge sources (GitHub, StackOverflow, Google Search) to find similar issues and diagnostics. | RAG, MCP, Bug Tracking, Google Search, IT Support, Database Integration, API | Workflow/Conversational | Intermediate | Single Agent | Horizontal / IT Support |
| Supply Chain | A multi-agent system designed to analyze real-time market dynamics, weather conditions, internal operations, and demand forecasts to optimize the power & energy supply chain. | Function tool (Python), Custom tool, Agent tool, Google Search, BigQuery | Conversational | Intermediate | Multi Agent | Power & Energy (Supply Chain) |
| Travel Concierge | Travel Concierge, Digital Tasks Assistant | Function tool (Python), Custom tool, Agent tool, Input and output schema, Updatable context, Dynamic instructions | Conversational | Advanced | Multi Agent | Travel |
| YouTube Analyst | Deep insights into YouTube content, channel performance, and audience engagement using interactive Plotly charts. | Multi-agent, YouTube API, Interactive charts | Conversational | Intermediate | Multi Agent | Marketing / Media Analytics |
| Auto Insurance Agent | Auto Insurance Agent to manage members, claims, rewards and roadside assistance. | Apigee, Apigee API hub, Agent Tool | Conversational | Easy | Multi Agent | Financial Services |
| Image Scoring | Image scoring agent to generate images based on policies and score the generated images to measure policy compliance. | Function tool (Python), Agent tool, Imagen, Loop Agent | Conversational | Easy | Multi Agent | Horizontal |
| Antom Payment | Integrates Ant International's Antom payment APIs to enable payment and refund operations via standardized MCP tools. | MCP, Payment, Refund, External API | Conversational | Intermediate | Single Agent | Financial Services / Payments |
| Incident Management | This agent sample showcases the utilization of dynamic identity propagation with ServiceNow and Application Integration Connectors | Application Integration, Integration Connectors, Agent Tool | Conversational | Easy | Single Agent | Customer Support |
| Order Processing | This agent sample showcases how Application Integration Connectors can be leveraged to automate orders and include human in the loop for workflows | Application Integration, Integration Connectors, Agent Tool | Conversational | Easy | Single Agent | Order Management |
| Google Trends Agent | Surfaces top trending search trends from Google Trends using BigQuery dataset. Shows trending topics by region and time period. | BigQuery, Trend analysis, Sequential agent | Conversational | Medium | Sequential Agent | Marketing & Analytics |
| Hierarchical Workflow Automation | The "Hierarchical Workflow Automation" pattern is an automation process where multiple distinct tasks or transactions must be executed in a structured hierarchy across various systems to complete a full workflow | Multi-agent, Custom tool, BigQuery, Agent Tool | Workflow | Advanced | Multi Agent / Sequential Agent | Order Management / Customer Support |
| Plumber-Data-Engineering-Assistant | A data engineering assistant agent capable of creating and deploy big data pipelines in Apache Spark, Apache Beam and dBT on GCP data stack via conversations | Big Data, Data Analytics, Streaming Analytics, Dataflow, Dataproc, Bigquery | Conversational | Hard | Multi Agent | Data & Analytics |
This section provides general guidance on how to run, test, evaluate, and potentially deploy the agent samples found in this repository. While the core steps are similar, each agent has its own specific requirements and detailed instructions within its dedicated README.md file.
Always consult the README.md inside the specific agent's directory (e.g., agents/fomc-research/README.md) for the most accurate and detailed steps.
Here's a general workflow you can expect:
-
Choose an Agent: Select an agent from the table above that aligns with your interests or use case.
-
Navigate to the Agent Directory: Open your terminal and change into the agent's main directory from the main repo directory:
cd python/agents/<agent-name> # Example: cd python/agents/fomc-research
-
Review the Agent's README: This is the most crucial step. Open the
README.mdfile within this directory. It will contain:- A detailed overview of the agent's purpose and architecture.
- Specific prerequisites (e.g., API keys, cloud services, database setup).
- Step-by-step setup and installation instructions.
- Commands for running the agent locally.
- Instructions for running evaluations (if applicable).
- Instructions for running tests (if applicable).
- Steps for deployment (if applicable).
-
Setup and Configuration:
- Prerequisites: Ensure you've met the general prerequisites listed in the main "Getting Started" section and any specific prerequisites mentioned in the agent's README.
- Dependencies: Install the agent's specific Python dependencies using
Poetry (this command is usually run from the agent's main directory):
poetry install
- Environment Variables: Most agents require configuration via
environment variables. Copy the
.env.examplefile to.envwithin the agent's directory and populate it with your specific values (API keys, project IDs, etc.). Consult the agent's README for details on required variables. You may need to load these variables into your shell environment (e.g., usingsource .envorset -o allexport; . .env; set +o allexportin bash).
-
Running the Agent Locally:
- Agents can typically be run locally for testing and interaction using
the ADK CLI or ADK Dev UI. The specific command might vary slightly
(e.g., the exact directory to run from), so check the agent's README.
CLI: Often involves running
adk run .from within the agent's core code directory (e.g.,agents/fomc-research/fomc_research/).# Example (check agent's README for exact path) cd agents/fomc-research/fomc_research/ adk run .
- ADK Dev UI: Often involves running
adk web .from the agent's main directory (e.g.,agents/fomc-research/).Then, open the provided URL in your browser and select the agent from the dropdown menu.# Example (check agent's README for exact path) cd agents/fomc-research/ adk web
- Agents can typically be run locally for testing and interaction using
the ADK CLI or ADK Dev UI. The specific command might vary slightly
(e.g., the exact directory to run from), so check the agent's README.
CLI: Often involves running
-
Evaluating the Agent:
- Many agents include an
eval/directory containing scripts and data to assess performance. - The agent's README will explain how to run these evaluations (e.g.,
python eval/test_eval.py). This helps verify the agent's effectiveness on specific tasks.
- Many agents include an
-
Testing the Agent Components:
- A
tests/directory often contains unit or integration tests (e.g., for custom tools). - These ensure the individual code components function correctly.
- The agent's README may provide instructions on how to run these tests,
often using a framework like
pytest.
- A
-
Deploying the Agent:
- Some agents are designed for deployment, typically to Vertex AI Agent Engine.
- The
deployment/directory contains the necessary scripts (likedeploy.py) and configuration files. - Deployment usually requires specific Google Cloud setup (Project ID,
enabled APIs, permissions). The agent's README and the scripts within
the
deployment/folder provide detailed instructions, similar to the example shown in thefomc-researchagent's documentation.
By following the specific instructions in each agent's README.md, you can effectively set up, run, evaluate, test, and potentially deploy these diverse examples.
Each agent displayed here is organized as follows:
├── agent-name
│ ├── agent_name/
│ │ ├── shared_libraries/ # Folder contains helper functions for tools
│ │ ├── sub_agents/ # Folder for each sub agent
│ │ │ │ ├── tools/ # tools folder for the subagent
│ │ │ │ ├── agent.py # core logic of the sub agent
│ │ │ │ └── prompt.py # prompt of the subagent
│ │ │ └── ... # More sub-agents
│ │ ├── __init__.py # Initializes the agent
│ │ ├── tools/ # Contains the code for tools used by the router agent
│ │ ├── agent.py # Contains the core logic of the agent
│ │ ├── prompt.py # Contains the prompts for the agent
│ ├── deployment/ # Deployment to Agent Engine
│ ├── eval/ # Folder containing the evaluation method
│ ├── tests/ # Folder containing unit tests for tools
│ ├── agent_pattern.png # Diagram of the agent pattern
│ ├── .env.example # Store agent specific env variables
│ ├── pyproject.toml # Project configuration
│ └── README.md # Provides an overview of the agentThe root of each agent resides in its own directory under agents/. For example, the llm-auditor agent is located in agents/llm-auditor/.
-
agent_name/(Core Agent Code):- This directory contains the core logic of the agent.
shared_libraries/: (Optional) Contains code that is shared among multiple sub-agents.sub_agents/: Contains the definitions and logic for sub-agents.- Each sub-agent has its own directory (e.g.,
critic/,reviser/inllm-auditor). tools/: Contains any custom tools specific to the sub-agent.agent.py: Defines the sub-agent's behavior, including its model, tools, and instructions.prompt.py: Contains the prompts used to guide the sub-agent's behavior.
- Each sub-agent has its own directory (e.g.,
__init__.py: An initialization file that imports theagent.pyfrom the folder for marking theagent_namedirectory as a Python package.tools/: Contains any custom tools used by the main agent.agent.py: Defines the main agent's behavior, including its sub-agents, model, tools, and instructions.prompt.py: Contains the prompts used to guide the main agent's behavior.
Note that the initial folder name is with "-" between words whereas the core logic is stored in the folder with the same agent name but with "_" between words (e.g.,
llm_auditor). This is due to the project structure imposed by poetry. -
deployment/- Contains scripts and files necessary for deploying the agent to a platform like Vertex AI Agent Engine.
- The
deploy.pyscript is often found here, handling the deployment process.
-
eval/- Contains data and scripts for evaluating the agent's performance.
- Test data (e.g.,
.test.jsonfiles) and evaluation scripts (e.g.,test_eval.py) are typically located here.
-
tests/- Contains unit and integration tests for the agent.
- Test files (e.g.,
test_agents.py) are used to verify the agent's functionality.
-
agent_pattern.png- A visual diagram illustrating the agent's architecture, including its sub-agents and their interactions.
-
.env.example- An example file showing the environment variables required to run the agent.
- Users should copy this file to
.envand fill in their specific values.
-
pyproject.toml- Contains project metadata, dependencies, and build system configuration.
- Managed by Poetry for dependency management.
-
README.md- Provides detailed documentation specific to the agent, including its purpose, setup instructions, usage examples, and customization options.
The llm-auditor agent demonstrates this structure effectively. It has:
- A core
llm_auditor/directory. - Sub-agents in
llm_auditor/sub_agents/, such ascritic/andreviser/. - Deployment scripts in
deployment/. - Evaluation data and scripts in
eval/. - Tests in
tests/. - An
.env.examplefile. - A
pyproject.tomlfile. - A
README.mdfile.