Repo with example code for building various types of agents using ADK
-
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
-
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.
-
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.