Skip to Content
GenAI on Google Cloud
book

GenAI on Google Cloud

by Ayo Adedeji, Lavi Nigam, Sarita Joshi, Stephanie Gervasi
January 2026
Intermediate to advanced
320 pages
9h 58m
English
O'Reilly Media, Inc.
Content preview from GenAI on Google Cloud

Chapter 4. Orchestrating Intelligent Agent Teams

“My new smart thermostat is showing a wiring error, and I think it might have overcharged my last bill. Can you check if it’s eligible for a warranty replacement and fix the billing issue?”

This is the kind of query that arrives every day in customer service systems. It’s deceptively simple—just a brief message from a frustrated customer. But look closer, and you’ll see it demands expertise from three entirely different domains: technical diagnostics for the wiring error, warranty policy interpretation for the replacement eligibility, and financial reconciliation for the billing correction.

In Chapter 3, we built a capable customer support agent using the ADK. It handled conversations gracefully, managed state across sessions, processed multimodal inputs, and executed tools reliably. For many single-domain problems, it was exactly the right solution. But throw this multidomain query at it, and you’ll quickly discover the architectural limits of what we call the “monolithic agent” approach.

The Bottleneck of the Monolithic Agent

Let’s examine what happens when you try to handle this query with a single LlmAgent as shown in Example 4-1.

Example 4-1. A monolithic support agent antipattern
# The monolithic agent antipattern
monolithic_support_agent = Agent(
    model="gemini-2.5-flash",
    name="UniversalSupportAgent",
    instruction="""You are a universal customer support agent handling:
 - Technical troubleshooting for smart home devices ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Generative AI on Google Cloud with LangChain

Generative AI on Google Cloud with LangChain

Leonid Kuligin, Jorge Zaldívar, Maximilian Tschochohei
Generative AI on AWS

Generative AI on AWS

Chris Fregly, Antje Barth, Shelbee Eigenbrode
Visualizing Google Cloud

Visualizing Google Cloud

Priyanka Vergadia

Publisher Resources

ISBN: 9798341623842Errata Page