Files
Hyang-Ah Hana Kim af790ae141 docs: update more Go documentation and examples to ADK Go v2 (#1936)
* docs: update ADK Go imports to v2 for core concepts and tutorials

* docs: update ADK Go imports and APIs to v2 for runtime and safety

* docs: update ADK Go imports to v2 for features (workflows, tools, skills, sessions, plugins)

* docs: update ADK Go imports to v2 for operations and integrations

---------

Co-authored-by: Kristopher Overholt <koverholt@google.com>
2026-07-07 18:09:07 -05:00

5.6 KiB

Build production agents, not prototypes.

ADK is the open-source agent development framework that lets you build, debug, and deploy reliable AI agents at enterprise scale. Available in Python, TypeScript, Go, Java, and Kotlin.

Python
TypeScript
Go
Java
Kotlin
from google.adk import Agent
from google.adk.tools import google_search

agent = Agent( name="researcher", model="gemini-flash-latest", instruction="You help users research topics thoroughly.", tools=[google_search], )

import { LlmAgent, GOOGLE_SEARCH } from '@google/adk';

const agent = new LlmAgent({ name: 'researcher', model: 'gemini-flash-latest', instruction: 'You help users research topics thoroughly.', tools: [GOOGLE_SEARCH], });

import "google.golang.org/adk/v2/agent/llmagent"

model, _ := gemini.NewModel(context.Background(), "gemini-flash-latest", nil) a, _ := llmagent.New(llmagent.Config{ Name: "researcher", Model: model, Instruction: "You help users research topics thoroughly.", Tools: []tool.Tool{geminitool.GoogleSearch{}}, })

import com.google.adk.agents.LlmAgent;
import com.google.adk.tools.GoogleSearchTool;

LlmAgent agent = LlmAgent.builder() .name("researcher") .model("gemini-flash-latest") .instruction("You help users research topics thoroughly.") .tools(new GoogleSearchTool()) .build();

import com.google.adk.kt.agents.LlmAgent
import com.google.adk.kt.tools.GoogleSearchTool

val agent = LlmAgent( name = "researcher", model = Gemini(name = "gemini-flash-latest"), instruction = Instruction("You help users research topics thoroughly."), tools = listOf(GoogleSearchTool()), )

pip install google-adk 📋
npm install @google/adk 📋
go get google.golang.org/adk/v2 📋
com.google.adk:google-adk 📋
com.google.adk:google-adk-kotlin-core 📋