No description
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
AI guide
# Google AI Agent 启动技术指南
## 【One-Line Pitch】
A practical, operations-first playbook for startups and developers who want to move AI agents from promising prototypes to reliable, scalable production systems on Google Cloud—covering everything from core concepts and architecture patterns to hands-on tooling with the Agent Development Kit (ADK).
## 【Book Arc】
- **Opening (~0%–9%)**: Introduces the AI agent paradigm shift and maps the Google Cloud agent ecosystem—three paths to adoption: building custom agents (code-first with ADK or app-first with Agentspace), using pre-built Google Cloud agents, and integrating partner agents. Establishes interoperability via MCP and A2A protocols as the foundation.
- **Early (~9%–27%)**: Breaks down the anatomy of an agent—model selection (balancing capability, speed, cost), grounding through RAG and its evolution toward GraphRAG and Agentic RAG, orchestration patterns (ReAct loop), and the runtime infrastructure needed for production deployment.
- **Early–Middle (~27%–41%)**: Deepens the grounding discussion with concrete Google Cloud implementations—vector databases, Vertex AI Search, and the three-tier memory architecture (long-term knowledge, working memory, transactional memory) mapped to specific data services like Firestore, Memorystore, Cloud SQL, and BigQuery.
- **Middle (~41%–55%)**: Transitions to the build phase—introduces the ADK as the sweet spot between low-code speed and full flexibility. Covers the three agent types (LLM-based, workflow agents, custom logic), the ReAct loop implementation, tool design principles, and the MCP standardization layer.
- **Late (~55%–end)**: Moves into production concerns—managing data across Google Cloud services, memory distillation as the next frontier, AgentOps for production-grade agent operations, and building responsible AI agents. Concludes with resources for further learning and Google Cloud startup support.
## 【Key Takeaways】
- **Model selection is about trade-offs, not raw power** (Early): Choose the most efficient model for each task—Gemini 2.5 Flash-Lite for high-throughput/low-latency work, Flash for balanced production apps, Pro for complex reasoning. Multi-agent architectures let you mix models dynamically, reserving heavy models for hard reasoning while light models handle routine queries.
- **Grounding is what makes agents trustworthy** (Early): RAG moves agents beyond pretrained knowledge by retrieving verifiable facts before generating answers. The progression from basic RAG → GraphRAG (understanding relationships) → Agentic RAG (active, multi-step retrieval) represents increasing sophistication in how agents interact with knowledge.
- **Orchestration via ReAct turns LLMs into problem-solvers** (Early): The Reason-Act-Observe loop is the core pattern—the agent forms hypotheses, calls tools, observes results, and iterates. This enables multi-step workflows like refund processing, customer onboarding, and proactive system monitoring that go far beyond single-turn Q&A.
- **Memory is a three-tier architecture** (Early): Long-term knowledge (grounding, context, analytics) uses services like Vertex AI Search and BigQuery; working memory (conversation context, caching) needs sub-millisecond access via Memorystore; transactional memory (audit trails, state changes) requires ACID guarantees from Cloud SQL or Cloud Spanner.
- **ADK offers three agent types for different execution modes** (Middle): LlmAgent provides flexible, non-deterministic reasoning; workflow agents (Sequential, Parallel, Loop) deliver predictable, deterministic execution; CustomAgent (BaseAgent subclass) gives full control via Python code. Your choice determines the reasoning-vs-control balance.
- **Tools are API contracts for models** (Middle): Effective tool design requires descriptive function signatures, precise docstrings (the semantic core), and structured return patterns with status keys. ADK supports everything from simple FunctionTools to Agent-as-a-Tool delegation and RemoteA2aAgent for cross-process communication.
- **MCP is the universal adapter for agent ecosystems** (Middle): The Model Context Protocol standardizes how agents connect to external tools and data sources—ADK agents can act as MCP clients (using third-party tools) or wrap their own tools as MCP servers (exposing them to the broader ecosystem).
- **Memory distillation is the next frontier** (Late): As conversation histories grow, feeding full context becomes inefficient and costly. LLM-driven memory distillation—asynchronously extracting key facts and preferences into compact, structured long-term memory—enables personalized, continuous experiences without the overhead. Vertex AI Memory Store (preview) offers early implementations.
## 【Reading Tips】
- **Skim the opening ecosystem overview** (~0%–9%): The three-path framework (build/use/partner) is useful context, but you can move quickly if you already know you want to build custom agents—jump ahead to the component breakdown.
- **Deep-read the memory architecture section** (Early, ~18%–23%): The three-tier memory model (long-term, working, transactional) is the conceptual backbone for the entire data strategy. Understanding this mapping to specific Google Cloud services will save you significant architectural rework later.
- **Focus on the ADK agent types and tool design** (Middle, ~45%–55%): This is the most actionable content for builders. The distinction between LlmAgent, workflow agents, and CustomAgent—and when to use each—directly determines your system's behavior and maintainability.
- **Treat the ReAct loop as your mental model**: The Reason-Act-Observe pattern appears repeatedly throughout the book. If you internalize this single concept, the rest of the architecture (tools, orchestration, memory) falls into place naturally.
- **Skim the Google Cloud service catalogs**: The book includes extensive service descriptions (Firestore, BigQuery, Cloud SQL, etc.). Read these as reference material—note which services exist and what they're for, but don't try to memorize details until you need them for a specific use case.
## 【Coverage Limits】
Excerpts cover the conceptual foundations, architecture patterns, and ADK tooling in depth, but do not include actual code examples, step-by-step tutorials, or detailed configuration guides. The AgentOps section and responsible AI discussion are mentioned but only briefly sampled in the available material.
##
Excerpt 1
以在Google Cloud 生态系统中协同工作。1 Thomas Kurian Google Cloud 首席执行官 构建您自 使用Google Cloud代 引入合作伙伴 己的代理 理 代理 与MCP和A2A协议的互操作性 1. MCP 和 A2A 协议在本指南的第 2节中进行了深入探讨。 4 第1节:AI代...
View in text
Page 14
知的支持。这减轻了您小型支 持团队的负担。 Firestore 一种无服务器的NoSQL 文档数据库,具备实时同步功能。其灵活的分层数据模型非常适合存储结构化上下文和代理的长期或持久状态。在用户完成多步骤、代 理引导的注册流程的每一步(例如“创建个人资料”、“连接API”、“邀请团队成员”)时,代理会更新一个 F...
View in text
Excerpt 3
t Development Kit V嵌er入texAAPI I 竖线队列 Pub/Sub C竖lo线ud处Ru理n器 知识图谱 Vertex AI Gemini API Agent Engine Vertex AI Cloud Run jobs config 嵌入 知识图谱 监控 日志记录 IAM Cloud ...
View in text
Excerpt 4
tex AI Agent Engine 或 Cloud Run。 • 基准测试您的代理:使用数据驱动的方法,根据预定义 的指标评估不同的代理设计或模型更新,以持续提升代理 ADK核心:代理架构 性能。 使用ADK构建时的一个基础步骤是选择合适的智能体架构。 不同的智能体类专为不同的执行模式设计,您的选择将决定智
View in text
Excerpt 5
ADK和 graphRAG,导航我们包含 440 亿个关联的全球样本知识图谱——所有操作均通过 A2A协调完成。 影响 过去需要数年完成的工作,如今只需数天。BioCorteX 的图谱智能体为投资组合中的关键决策者提供完全透明 的情景规划,以深厚的科学知识支撑高层次的商业考量—— 加速新机制和治疗领域的测试,同时...
View in text
Excerpt 6
构建更多生成式人工智能应用 程序。 立即开始 通过Google for Startups Cloud 课程,最高可获得 35 万美元的Google Cloud 学分。 立即申请 联系我们初创企业团队。 联系我们 通过订阅Google Cloud 创业者通讯,保持联系并获取我们最 新的更新。 订阅 47 第3节确保...
View in text
Excerpt 7
强化的云基础设施,以大规模执 的每一个思考步骤和工具调用。Agent Starter Pack 通过自 行这些控制措施。这种结合方法涵盖了安全性的关键方面 动配置日志接收器,将这些数据路由至 BigQuery 进行长期 安全存储,从而实现可操作化。这形成了符合合规审查和事 件响应所需的持久审计轨迹。 a和合规: ...
View in text
Excerpt 8
平台, • 模型调优:模型调优是调整Gemini 以更精确和准确地执行 用于构建和使用生成式AI。 特定任务的关键过程。 • Vertex AI RAG 引擎:Vertex AI RAG 引擎是一个 Act:使用 ReAct(推理 用于开发上下文增强型 LLM应用程序的数据框架。 • Re + 动作)代理进行编排...
View in text
Tags
AI categories
AICloud NativeBackend
Text Preview (First 20 pages)
Registered users can read the full content for free
Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.
Generating text preview…
Loading comments...
Reply to Comment
Edit Comment