Tutorial
50 posts
State 读写:Agent 内部状态管理
详解 ADK Go 中 State 的概念、读写 API,以及如何在多轮对话中保持和共享自定义状态数据。
Session Management: Creation, Persistence and Recovery
Detailed explanation of Session concept, creation, persistence and recovery mechanism in ADK Go, understanding how to maintain Agent context in multi-turn conversations.
Tool Confirmation & Security Auth: Adding Safety Valves Before Agent Actions
Detailed Tool Confirmation mechanism—when Agent needs to execute risky operations, how to let user confirm before executing; plus API Key, OAuth and other auth mechanism configuration.
OpenAPI Tool: Dynamic Tool Generation from REST APIs for Agent Invocation
Detailed guide on using OpenAPI Tool to dynamically generate Tools from OpenAPI specs, suitable for services with API documentation but no MCP interface.
MCP Server Integration: Turning Any External Service into an Agent Tool
Detailed MCP (Model Context Protocol) working principles, and how to connect external services (like databases, APIs) to ADK Go Agents through MCP.
Function Tool Performance Optimization: Timeout, Concurrency, and Resource Management
Detailed Function Tool performance optimization strategies: timeout control, concurrent calls, connection pool management, and how to prevent slow Tools from affecting entire Agent’s response.
Function Tool Basics: Letting Agent Call Custom Logic
Deep dive into ADK Go Function Tool writing: interface definition, parameter parsing, return value handling, and how Model correctly recognizes and calls Tools.
API Key & Model Selection: Balancing Cost, Capability, and Use Case
Detailed guide on Google Gemini API Key acquisition and management, and how to select the right model based on use case: flash/pro/experimental, and their impact on cost and capability.
CLI vs Web: ADK Go Execution Modes Comparison and Selection
Detailed comparison of ADK Go’s two execution modes—CLI interaction and Web interface—their applicable scenarios, pros and cons, configuration methods.
Hello World Agent: A Complete Minimal Runnable Agent Example
Build a complete Hello World Agent from scratch, with line-by-line code explanation, running and debugging, common error analysis, helping you build a complete sensory understanding of ADK Go.
