✦ Want a lab built just for you? ✦
Request a Lab ↗

Building a Multi-Agent Data Quality Pipeline with Google ADK

About this lab

You are a data quality engineer at MedInsight Analytics, a healthcare consulting firm that processes patient survey data for hospital networks across the country. Your team just received a batch of 2,000 patient survey records from a new hospital client, and preliminary checks suggest the data is riddled with issues: missing fields, out-of-range values, duplicate entries, and invalid dates. Manual review would take days, and the analytics team needs clean data by end of week.

In this lab, you will build an automated data quality pipeline using the Google Agent Development Kit (ADK). You will create three specialist agents orchestrated by a SequentialAgent: a Schema Validator that checks field types, required fields, and allowed values; an Anomaly Detector that catches out-of-range numeric values, invalid dates, and statistical outliers; and a Report Generator that compiles findings into a comprehensive quality report. Each agent passes structured results to the next through session state using ToolContext and output_key, giving you hands-on experience with ADK multi-agent orchestration patterns.

Lab details

  • Level: Intermediate
  • Cloud: GCP
  • Domain: AI Engineering
  • Duration: 90 minutes

What you will learn

  • Understand the ADK SequentialAgent pattern for multi-stage pipelines
  • Build multiple LlmAgent definitions with distinct roles and tools
  • Use output_key to pass results between agents via shared session state
  • Create data validation tools that check schemas, ranges, and duplicates
  • Orchestrate agents that read upstream results to build comprehensive reports
  • Test a multi-agent pipeline end-to-end with the ADK web interface

Concepts covered

  • Google ADK
  • SequentialAgent
  • output_key
  • Multi-Agent
  • Session State
  • Data Quality

Technologies used

  • Google ADK
  • SequentialAgent
  • Gemini 2.5 Flash
  • Python

Prerequisites

  • Completed Lab 1 (Cloud Cost Advisor) or basic Google ADK knowledge
  • Basic Python knowledge (functions, dictionaries, lists)

Topics

  • Google ADK
  • SequentialAgent
  • Multi-Agent
  • Data Quality
  • Pipeline
  • Gemini
  • Python
  • GCP