Framework · Google
Google ADK in breve
L'Agent Development Kit di Google include SDK per Python, TypeScript, Go, Java e Kotlin e funzionalità di valutazione integrate nel core. È progettato prima di tutto per Gemini, ma supporta altri modelli tramite adapter e può essere distribuito su Agent Runtime in Google Cloud.
Ideale per: Team che lavorano con diversi linguaggi e vogliono agenti pensati prima di tutto per Gemini, valutazioni integrate e un accesso diretto a Google Cloud.
Informazioni principali
- Responsabile
- Linguaggi
- Python, TypeScript, Go, Java, Kotlin
- Licenza
- Apache-2.0
- Ultima versione
Python 2.10.0· 25 settembre 2026- Repository
- google/adk-python
- Opzione hosted
- Agent Runtime on Gemini Enterprise Agent Platform (formerly Vertex AI Agent Engine); also Cloud Run, GKE
Guida rapida
Installa il pacchetto, configura le credenziali, quindi esegui l'agente più semplice indicato nella documentazione ufficiale. Gli ID dei modelli sono quelli usati nella documentazione e potrebbero non essere abilitati per il tuo account.
Python
pip install google-adk && adk create my_agent (run with: adk run my_agent or adk web --port 8000)from google.adk.agents.llm_agent import Agent
# Mock tool implementation
def get_current_time(city: str) -> dict:
"""Returns the current time in a specified city."""
return {"status": "success", "city": city, "time": "10:30 AM"}
root_agent = Agent(
model='gemini-flash-latest',
name='root_agent',
description="Tells the current time in a specified city.",
instruction="You are a helpful assistant that tells the current time in cities. Use the 'get_current_time' tool for this purpose.",
tools=[get_current_time],
)TypeScript
npm install @google/adk (inferred from package name; not copied from docs)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],
});Funzionalità
| Qualsiasi modello | Sì | Pensato prima di tutto per Gemini; altri modelli tramite LiteLLM e adapter locali |
|---|---|---|
| Client MCP | Sì | McpToolset, con conferma facoltativa per ogni tool |
| Server MCP | Sì | Espone un agente con to_mcp_server() |
| Multi-agent | Sì | Alberi di sub-agenti e, da ADK 2.0, workflow basati su grafi |
| Esecuzioni durevoli | Sì | Riprende gli agenti arrestati; Agent Runtime mantiene lo stato delle attività di lunga durata |
| Approvazione umana | Sì | Conferma degli strumenti tramite require_confirmation=True |
| Tracing | Sì | Basato su OpenTelemetry, con Cloud Trace su Google Cloud |
| Valutazioni | Sì | La valutazione è una funzionalità centrale di ADK |
Modifiche recenti
- ADK 2.0 ha introdotto workflow basati su grafi.
- A Python, TypeScript, Go e Java si è aggiunto un SDK per Kotlin.
- La documentazione è stata trasferita su adk.dev.
- Vertex AI Agent Engine è stato rinominato Agent Runtime sulla Gemini Enterprise Agent Platform.