Agentic Design Patterns: A Book That Made Me Re-Understand "What Is an Agent, Really?"
"Agentic Design Patterns" is a 2025 book by Antonio Gullí, a Google engineering director, which offers a systematic framework for AI Agent development through 21 design patterns.
A core contribution is the "Four Levels of Agency": Level 0 (bare LLMs) are not true agents. Level 1 agents actively decide when and how to use tools. Level 2 agents engage in strategic planning, context engineering (curating and filtering information), and self-reflection. Level 3 involves multi-agent collaboration with defined communication topologies.
The book introduces **Context Engineering** as a superset of prompt engineering, managing four layers of information for the agent: system prompts, external data, implicit context (user history, environment), and feedback loops for automated optimization.
A key pattern is **Reflection (Producer-Critic)**, where two distinct agents with different prompts collaborate iteratively—one produces output, the other critiques it—until quality is satisfactory or a max iteration limit is reached.
For **Memory**, a three-layer model is proposed: Session (ephemeral conversation context), State (temporary task data), and Memory (persistent, long-term storage).
Regarding **Multi-Agent Systems**, the book advises against unnecessary complexity, recommending simple topologies like Supervisor or Peer-to-Peer based on task needs. It emphasizes perfecting a single Level 2 agent before moving to multi-agent setups.
The author concludes with three actionable takeaways: 1) Add a Critic agent to existing workflows, 2) Practice Context Engineering beyond simple prompts, and 3) Avoid premature multi-agent complexity; first master a robust single agent.
The book provides a practical map, codifying common challenges like reflection, memory, and coordination into reusable patterns, saving developers from reinventing foundational solutions.
链捕手48 мин. назад