From the course: Hands-On AI: Building Agents with the Google Agent Development Toolkit (ADK)

Unlock this course with a free trial

Join today to access over 25,000 courses taught by industry experts.

ADK quickstart: Building your first text-based agent

ADK quickstart: Building your first text-based agent

- [Instructor] Imagine building and testing your first AI agent directly within a notebook in just a few minutes. Sounds powerful, right? With Google's Agent Development Kit, or ADK, this isn't just possible, it's straightforward. Let's walk through the essentials installing ADK, configuring your environment, defining a simple agent, and running your very first agent interaction. First, let's get ADK into your environment. In your notebook, you'll run a simple pip command. pip install google-adk. Next, we configure the environment. For this quick start, we'll set things up to use the Gemini API directly, which is great for demos. We do this by setting an environment variable and we'll specify the model we want our agent to use, in this case, a fast and efficient model, Gemini 2.0 Flash. Now, let's import the fundamental building blocks from ADK. We need Agent, Runner, and InMemorySessionService. For now, keep in mind that Runner orchestrates message flow and Agent execution, and…

Contents