Skip to content

Repo with example code for building various types of agents using Agent Development Kit (ADK)

License

Notifications You must be signed in to change notification settings

Neutrollized/adk-examples

Repository files navigation

Agent Development Kit (ADK) examples

Repo with example code for building various types of agents using ADK

Setup

  • install required Python packages/modules: pip install -r requirements.txt

  • .env file in your agent's folder (Google AI Studio)

GOOGLE_GENAI_USE_VERTEXAI=FALSE
GOOGLE_API_KEY=a1b2c3yourapikeyherex7y8z9
  • .env file in your agent's folder (Vertex AI)
GOOGLE_GENAI_USE_VERTEXAI=TRUE
GOOGLE_CLOUD_PROJECT=myproject-123
GOOGLE_CLOUD_LOCATION=us-central1

NOTE: while you can use any location you wish, not all locations supports every Gemini model

Examples

  1. Simple Weather and Time agent that uses function tools to find latitude & longitude of a given city, country and its weather and time (timezone-adjusted). Uses sub-agents to handle specific tasks, each with its own persona. You can find a short write-up of it on my Medium.

  2. Model Context Protocol (MCP) example that uses FastMCP and ngrok to host the MCP server which the math agent connects to get tools to help it perform basic math (add/subtract/multiply/divide). Read about this on my Medium.

About

Repo with example code for building various types of agents using Agent Development Kit (ADK)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages