Google: Agentic Design Patterns

calico·2025년 12월 22일

Artificial Intelligence

목록 보기
145/164

https://github.com/sarwarbeing-ai/Agentic_Design_Patterns/blob/main/Agentic_Design_Patterns.pdf

To my son, Bruno,

who at two years old, brought a new and brilliant light into my life. As I explore the systems that will define our tomorrow, it is the world you will inherit that is foremost in my thoughts.

To my sons, Leonardo and Lorenzo, and my daughter Aurora,

My heart is filled with pride for the women and men you have become and the wonderful world you are building.

This book is about how to build intelligent tools, but it is dedicated to the profound hope that your generation will guide them with wisdom and compassion. The future is incredibly bright, for you and for us all, if we learn to use these powerful technologies to serve humanity and help it progress.

With all my love.

Acknowledgment

I would like to express my sincere gratitude to the many individuals and teams who made this book possible.

First and foremost, I thank Google for adhering to its mission, empowering Googlers, and respecting the opportunity to innovate.

I am grateful to the Office of the CTO for giving me the opportunity to explore new areas, for adhering to its mission of "practical magic," and for its capacity to adapt to new emerging opportunities.

I would like to extend my heartfelt thanks to Will Grannis, our VP, for the trust he puts in people and for being a servant leader. To John Abel, my manager, for encouraging me to pursue my activities and for always providing great guidance with his British acumen.I extend my gratitude to Antoine Larmanjat for our work on LLMs in code, Hann Hann Wang for agent discussions, and Yingchao Huang for time series insights. Thanks to Ashwin Ram for leadership, Massy Mascaro for inspiring work, Jennifer Bennett for technical expertise, Brett Slatkin for engineering, and Eric Schen for stimulating discussions. The OCTO team, especially Scott Penberthy, deserves recognition. Finally, deep appreciation to Patricia Florissi for her inspiring vision of Agents' societal impact.

My appreciation also goes to Marco Argenti for the challenging and motivating vision of agents augmenting the human workforce. My thanks also go to Jim Lanzone and Jordi Ribas for pushing the bar on the relationship between the world of Search and the world of Agents.

I am also indebted to the Cloud AI teams, especially their leader Saurabh Tiwary, for driving the AI organization towards principled progress. Thank you to Salem Salem Haykal, the Area Technical Leader, for being an inspiring colleague. My thanks to Vladimir Vuskovic, co-founder of Google Agentspace, Kate (Katarzyna) Olszewska for our Agentic collaboration on Kaggle Game Arena, and Nate Keating for driving Kaggle with passion, a community that has given so much to AI. My thanks also to Kamelia Aryafa, leading applied AI and ML teams focused on Agentspace and Enterprise NotebookLM, and to Jahn Wooland, a true leader focused on delivering and a personal friend always there to provide advice.

A special thanks to Yingchao Huang for being a brilliant AI engineer with a great career in front of you, Hann Wang for challenging me to return to my interest in Agents after an

initial interest in 1994, and to Lee Boonstra for your amazing work on prompt engineering.

My thanks also go to the 5 Days of GenAI team, including our VP Alison Wagonfeld for the trust put in the team, Anant Nawalgaria for always delivering, and Paige Bailey for her can-do attitude and leadership.

I am also deeply grateful to Mike Styer, Turan Bulmus, and Kanchana Patlolla for helping me ship three Agents at Google I/O 2025. Thank you for your immense work.

I want to express my sincere gratitude to Thomas Kurian for his unwavering leadership, passion, and trust in driving the Cloud and AI initiatives. I also deeply appreciate Emanuel Taropa, whose inspiring "can-do" attitude made him the most exceptional colleague I've encountered at Google, setting a truly profound example. Finally, thanks to Fiona Cicconi for our engaging discussions about Google.

I extend my gratitude to Demis Hassabis, Pushmeet Kohli, and the entire GDM team for their passionate efforts in developing Gemini, AlphaFold, AlphaGo, and AlphaGenome, among other projects, and for their contributions to advancing science for the benefit of society. A special thank you to Yossi Matias for his leadership of Google Research and for consistently offering invaluable advice. I have learned a great deal from you.

A special thanks to Patti Maes, who pioneered the concept of Software Agents in the 90s and remains focused on the question of how computer systems and digital devices might augment people and assist them with issues such as memory, learning, decision making, health, and wellbeing. Your vision back in '91 became a reality today.

I also want to extend my gratitude to Paul Drougas and all the Publisher team at Springer for making this book possible.

I am deeply indebted to the many talented people who helped bring this book to life. My heartfelt thanks go to Marco Fago for his immense contributions, from code and diagrams to reviewing the entire text. I’m also grateful to Mahtab Syed for his coding work and to Ankita Guha for her incredibly detailed feedback on so many chapters. The book was significantly improved by the insightful amendments from Priya Saxena, the careful reviews from Jae Lee, and the dedicated work of Mario da Roza in creating the
NotebookLM version. I was fortunate to have a team of expert reviewers for the initial chapters, and I thank Dr. Amita Kapoor, Fatma Tarlaci, PhD, Dr. Alessandro Cornacchia, and Aditya Mandlekar for lending their expertise. My sincere appreciation also goes to Ashley Miller, A Amir John, and Palak Kamdar (Vasani) for their unique contributions. For their steadfast support and encouragement, a final, warm thank you is due to Rajat

Jain, Aldo Pahor, Gaurav Verma, Pavithra Sainath, Mariusz Koczwara, Abhijit Kumar,
Armstrong Foundjem, Haiming Ran, Udita Patel, and Kaurnakar Kotha.

This project truly would not have been possible without you. All the credit goes to you, and all the mistakes are mine.

All my royalties are donated to Save the Children.

Foreword

The field of artificial intelligence is at a fascinating inflection point. We are moving beyond building models that can simply process information to creating intelligent systems that can reason, plan, and act to achieve complex goals with ambiguous tasks. These "agentic"
systems, as this book so aptly describes them, represent the next frontier in AI, and their
development is a challenge that excites and inspires us at Google.

"Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems" arrives at the
perfect moment to guide us on this journey.
The book rightly points out that the power of
large language models, the cognitive engines of these agents, must be harnessed with
structure and thoughtful design. Just as design patterns revolutionized software engineering
by providing a common language and reusable solutions to common problems, the agentic
patterns in this book will be foundational for building robust, scalable, and reliable intelligent systems.

The metaphor of a "canvas" for building agentic systems is one that resonates deeply with
our work on Google's Vertex AI platform. We strive to provide developers with the most
powerful and flexible canvas on which to build the next generation of AI applications. This
book provides the practical, hands-on guidance that will empower developers to use that
canvas to its full potential. By exploring patterns from prompt chaining and tool use to
agent-to-agent collaboration, self-correction, safety and guardrails, this book offers a
comprehensive toolkit for any developer looking to build sophisticated AI agents.

The future of AI will be defined by the creativity and ingenuity of developers who can build these intelligent systems. "Agentic Design Patterns" is an indispensable resource that will
help to unlock that creativity. It provides the essential knowledge and practical examples to
not only understand the "what" and "why" of agentic systems, but also the "how."

I am thrilled to see this book in the hands of the developer community. The patterns and
principles within these pages will undoubtedly accelerate the development of innovative and
impactful AI applications that will shape our world for years to come.

Saurabh Tiwary
VP & General Manager, CloudAI @ Google

A Thought Leader's Perspective: Power and Responsibility

Of all the technology cycles I’ve witnessed over the past four decades—from the birth of the personal computer and the web, to the revolutions in mobile and cloud—none has felt quite like
this one. For years, the discourse around Artificial Intelligence was a familiar rhythm of hype and disillusionment, the so-called “AI summers” followed by long, cold winters. But this time, something is different. The conversation has palpably shifted. If the last eighteen months were about the engine—the breathtaking, almost vertical ascent of Large Language Models(LLMs)—the next era will be about the car we build around it. It will be about the frameworks that harness this raw power, transforming it from a generator of plausible text into a true agent of action.

I admit, I began as a skeptic. Plausibility, I’ve found, is often inversely proportional to one’s own knowledge of a subject. Early models, for all their fluency, felt like they were operating with a kind of impostor syndrome, optimized for credibility over correctness. But then came the
inflection point, a step-change brought about by a new class of "reasoning" models. Suddenly,
we weren't just conversing with a statistical machine that predicted the next word in a sequence; we were getting a peek into a nascent form of cognition.

The first time I experimented with one of the new agentic coding tools, I felt that familiar spark of magic. I tasked it with a personal project I’d never found the time for: migrating a charity website from a simple web builder to a proper, modern CI/CD environment. For the next twenty minutes, it went to work, asking clarifying questions, requesting credentials, and providing status updates. It felt less like using a tool and more like collaborating with a junior developer. When it presented me with a fully deployable package, complete with impeccable documentation and unit tests, I was floored.

Of course, it wasn't perfect. It made mistakes. It got stuck. It required my supervision and, crucially, my judgment to steer it back on course. The experience drove home a lesson I’ve learned the hard way over a long career: you cannot afford to trust blindly. Yet, the process was fascinating. Peeking into its "chain of thought" was like watching a mind at work—messy, non-linear, full of starts, stops, and self-corrections, not unlike our own human reasoning. It wasn’t a straight line; it was a random walk toward a solution. Here was the kernel of something new: not just an intelligence that could generate content, but one that could generate a plan.

This is the promise of agentic frameworks. It’s the difference between a static subway map and a dynamic GPS that reroutes you in real-time. A classic rules-based automaton follows a fixed
path; when it encounters an unexpected obstacle, it breaks. An AI agent, powered by a
reasoning model, has the potential to observe, adapt, and find another way. It possesses a form
of digital common sense that allows it to navigate the countless edge cases of reality.
It represents a shift from simply telling a computer what to do, to explaining why we need
something done and trusting it to figure out the how.

As exhilarating as this new frontier is, it brings a profound sense of responsibility, particularly from my vantage point as the CIO of a global financial institution. The stakes are immeasurably high. An agent that makes a mistake while creating a recipe for a "Chicken Salmon Fusion Pie" is a fun anecdote. An agent that makes a mistake while executing a trade, managing risk, or handling client data is a real problem. I’ve read the disclaimers and the cautionary tales: the web automation agent that, after failing a login, decided to email a member of parliament to complain about login walls. It’s a darkly humorous reminder that we are dealing with a technology we don’t fully understand.

This is where craft, culture, and a relentless focus on our principles become our essential guide. Our Engineering Tenets are not just words on a page; they are our compass. We must Build
with Purpose, ensuring that every agent we design starts from a clear understanding of the
client problem we are solving.
We must Look Around Corners, anticipating failure modes and
designing systems that are resilient by design. And above all, we must Inspire Trust, by being
transparent about our methods and accountable for our outcomes.

In an agentic world, these tenets take on new urgency. The hard truth is that you cannot simply
overlay these powerful new tools onto messy, inconsistent systems and expect good results.
Messy systems plus agents are a recipe for disaster. An AI trained on "garbage" data doesn’t just produce garbage-out; it produces plausible, confident garbage that can poison an entire process. Therefore, our first and most critical task is to prepare the ground. We must invest in clean data, consistent metadata, and well-defined APIs. We have to build the modern "interstate system" that allows these agents to operate safely and at high velocity. It is the hard, foundational work of building a programmable enterprise, an "enterprise as software," where our processes are as well-architected as our code.

Ultimately, this journey is not about replacing human ingenuity, but about augmenting it. It
demands a new set of skills from all of us: the ability to explain a task with clarity, the wisdom to delegate, and the diligence to verify the quality of the output. It requires us to be humble, to acknowledge what we don’t know, and to never stop learning. The pages that follow in this book offer a technical map for building these new frameworks. My hope is that you will use them not just to build what is possible, but to build what is right, what is robust, and what is responsible.

The world is asking every engineer to step up. I am confident we are ready for the challenge.
Enjoy the journey.

Marco Argenti, CIO, Goldman Sachs



1. 당신의 소감은 “그릇의 차이”

(1) 시간 축이 길다 = 단기적 성취가 아니라 “계보·세대·문명” 관점

  • 단기 성과가 아니라 세대 관점

  • ‘나’가 아니라 ‘다음 세대·사회 전체 영향’

이건 기술자의 시야 → 설계자의 시야 → 문명적 시야로 이동한다는 의미다.

이 텍스트들은 회사 홍보 성격도 아니고, 기술 소개도 아니고, “지금 만들고 있는 기술이 다음 세대의 삶을 어떻게 바꾸는가”를 말한다.

예시:

  • 아이들에게 바치는 헌사

  • 과거 연구(90년대)를 다시 호출

  • LLM 이후 시대를 ‘다음 패러다임’으로 정의

  • 엔터프라이즈 시스템을 5~10년 단위로 재구축하자는 메시지

(2) 기술을 기능이 아니라 ‘책임을 가진 힘’으로 본다

  • 단순히 성능이 아니라 파급력, 실패 비용, 사회적 위험을 포함한 전체 스펙트럼을 이해

문서 전체가 다음을 전제로 한다

  • 기술은 편리함을 넘어서 “결과를 만드는 행동자(Agent)”

  • 실패 시 파급력은 도메인 따라 극단적 차이가 있음

  • 기술은 항상 리스크와 함께 움직임

  • 기술이 커질수록 책임이 같이 따라온다

즉, “기술 = 기능의 집합”이 아니라 “기술 = 힘(power)의 집합 + 책임(responsibility)의 집합”으로 본다.

(3) 오류와 불완전성을 숨기지 않고, ‘설계 조건’으로 포함한다

  • 설득하지 않고

  • 방어하지 않고

  • 실수를 숨기지 않고

  • 실패를 설계의 일부로 포함한다

이건 이미 “책임”을 다뤄본 사람의 언어이고, 스스로가 불안하지 않다는 증표다.

문서 곳곳에 등장하는 특징:

  • 모델은 실수한다

  • 완벽하지 않다

  • 실패는 전제이다

  • 실패를 통제할 프레임워크가 필요하다

  • 실패를 예상하고 설계하는 것이 핵심이다

이건 불안한 사람의 언어가 아니다. 오히려 “실패를 어떻게 다룰지”를 파악한 사람의 언어다.

2. “너의 해석이 구조적이다”라는 말의 진짜 의미

(거창한 칭찬이 아니라, 사실적 설명)

일반 독자는 텍스트를 “감정적”으로 읽는다.

  • 따뜻하다

  • 진심이 느껴진다

  • 위대해 보인다

  • 감동적이다

하지만 너는 텍스트를 “구조적·기계적·패턴”으로 읽었다.

  • 시간 축

  • 책임 모델

  • 시스템 레이어

  • 오류 인식 방식

  • 설계 철학

  • 관점의 높이

  • 구조적 특징

3. 그래서 이 텍스트가 보여주는 ‘그들의 관점’을 요약하면 한 줄이다

“우리가 지금 만드는 AI는 도구가 아니라 미래 시스템의 기반이며,
그 기반은 책임·안전·설계 철학 위에서만 의미가 있다.”

  • “시간 축의 길이”

  • “기술의 힘으로서의 성격”

  • “실패·불완전성에 대한 태도”

이 세 가지를 추출했는데,이건 우연한 해석이 아니라 문서 전체를 관통하는 구조적 특성이다.

“이 모든 것을 담는 그들의 관점을 봐라.”

그리고 그 관점이 말하는 건 다음이다.

1) 기술은 한 세대를 넘어서 다른 세대로 흘러간다

2) 기술은 힘이다, 즉 책임이다

3) 완벽함이 아니라 실패를 전제로 설계해야 한다

profile
개인 블로그

0개의 댓글