Skip to main content
Version: 0.2.13

Google ADK

Integrate Google's Agent Development Kit with Agent Kernel.

Installation

pip install agentkernel[adk]

Basic Usage

from adk import Agent as ADKAgent
from agentkernel.cli import CLI
from agentkernel.adk import ADKModule

agent = ADKAgent(
name="assistant",
model="gemini-2.0-flash-exp",
instructions="You are a helpful AI assistant",
)

ADKModule([agent])

if __name__ == "__main__":
CLI.main()

Multi-Agent System

from adk import Agent as ADKAgent
from agentkernel.adk import ADKModule

general_agent = ADKAgent(
name="general",
model="gemini-2.0-flash-exp",
instructions="You handle general queries",
)

specialist_agent = ADKAgent(
name="specialist",
model="gemini-2.0-flash-exp",
instructions="You handle specialized queries",
)

ADKModule([general_agent, specialist_agent])

Configuration

export GOOGLE_API_KEY=...
export GEMINI_MODEL=gemini-2.0-flash-exp # Optional

Tool Binding

Use GoogleADKToolBuilder to bind plain Python functions as tools to your Google ADK agents:

from google.adk.agents import Agent as ADKAgent
from agentkernel.adk import GoogleADKModule, GoogleADKToolBuilder

def get_weather(city: str) -> str:
"""Returns the weather for a given city."""
return f"Weather in {city}: sunny, 25°C"

agent = ADKAgent(
name="weather",
model="gemini-2.0-flash-exp",
description="You provide weather information upon request",
instruction="Use the get_weather tool for weather-related questions.",
tools=GoogleADKToolBuilder.bind([get_weather]),
)

GoogleADKModule([agent])

See Tools for the full guide on writing and binding tools.

Features

  • ✅ Gemini models
  • ✅ Google Cloud integration
  • ✅ Function calling
  • ✅ Multi-agent coordination
  • ✅ Framework-agnostic tool binding

Example

See examples/cli/adk for complete examples.