Skip to main content

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, and loop agents 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