Building AI Agents in Go with the Agent Development Kit (ADK)
Google for DevelopersNovember 7, 202510 min14,527 views
24 connectionsΒ·40 entities in this videoβIntroducing the Agent Development Kit (ADK) Go
- π‘ The Agent Development Kit (ADK) Go is a new, idiomatic library for Go developers to build powerful generative AI applications.
- π It aims to simplify the development, deployment, and evaluation of AI agents by addressing complexities like state management, memory, tool calls, and control flow.
Core Agent Concepts in ADK Go
- π§ ADK categorizes agents into three types: LLM-based reasoning agents (decide tool calls/transfers), workflow agents (deterministic logic), and custom agents (arbitrary logic).
- π οΈ An agent is defined by its name, description, LLM model, and instruction prompt.
- π Agents are run using a session service, creating a session to hold the conversation and a runner to execute the agent, producing an iterator of events.
Enhancing Agents with Tools
- π Tools augment agents with capabilities beyond LLM's text processing, such as internet browsing, database queries, or API calls.
- βοΈ The ADK framework manages the process where an agent analyzes a request, determines if a tool is needed, and then executes the tool with appropriate arguments.
- π ADK Go offers three tool types: built-in tools (e.g., Google Search), third-party tools, and function tools which wrap arbitrary Go code.
Multi-Agent Patterns and Orchestration
- π€ ADK supports multi-agent scenarios where agents collaborate, either through interoperability for tools or via an agent-to-agent protocol.
- π§© A powerful pattern is using one agent as a tool for another, enabling hierarchical or collaborative systems.
- π Workflow agents like
sequential,parallel, andloopagents orchestrate complex flows involving multiple agents, allowing for sequential execution, concurrent processing, or iterative refinement based on exit conditions.
State, Sessions, and Context Management
- π¬ A session represents a single ongoing conversation thread, storing history, a shared state map, and metadata like user ID and application name.
- π The state acts as an agent's temporary scratchpad for conversation-specific data, allowing for dynamic customization of agent instructions.
- πΎ For knowledge that persists beyond a single conversation, ADK provides a memory service for long-term memory management.
Knowledge graph40 entities Β· 24 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
40 entities
Chapters5 moments
Key Moments
Transcript38 segments
Full Transcript
Topics13 themes
Whatβs Discussed
Agent Development Kit (ADK)Go Programming LanguageGenerative AIAI AgentsLarge Language Models (LLMs)Tool UseFunction ToolsMulti-agent SystemsWorkflow AgentsSession ManagementState ManagementContext ManagementOpen Source Framework
Smart Objects40 Β· 24 links
ProductsΒ· 20
ConceptsΒ· 20