Build an AI Agent with Gemini 3

Google for Developers · Beginner ·🧠 Large Language Models ·8mo ago

Key Takeaways

Builds an AI agent with Gemini 3 Pro and the Agent Development Kit using Python and Google AI Studio API

Full Transcript

Hi everyone. Gemini 3 Pro just launched and I'm super excited by all the new and improved updates. The model is really great at advanced highle reasoning and things like following along with really complex instructions which make it ideal for building agentic operations and ultimately building great AI agents with. So in this video I'm going to show you exactly how you can go about building your very first AI agent with Gemini 3 Pro and the agent development kit. To start off, let's create an empty project folder where our AI agent will live. I've done that and I've named it Gemini 3 Pro AI agent and I've opened terminal. We're then going to initialize our project folder with UV. UV is a Python package manager. And if you don't have it installed, you can find installation instructions in the description box below. And next, we'll add the two libraries that we need for this project, which is Google ADK's library and Google's JDI library. Now, it's time to add your Google AI Studio API key. To find this API key, all you have to do is navigate to Google AI Studio and get your API key there. Uh once you have that, you can export it here in this type of command. Now we will activate our Python environment. Once we're in our Python environment, we can now create our ADK agent scaffolding with just one simple command. All you have to do is type in ADK create followed by the name of your agent. At which point you'll be prompted to select a model for your agent. Since we're going to be using Gemini 3 Pro, I'm going to select option two. And you can see the files which have been created as a result of that command. Now we can hop into Visual Studio Code and start writing in our Asian. py file. Once you navigate to VS Studio and you open your Asian py file, you'll notice it already comes with some boilerplate code. Let's remove all of that. Let's go over to ADK's documentation and copy a piece of code from there. We're going to be making use of this code right here, which comes under the Google search tool in ADK's documentation. The link for this will be in the description box below, as well as the link to the repository of our final agent as well, because we are going to be making some changes to this code. So, let's go ahead and copy this. Head back to VS Code, and then let's paste it. Now, we want to make some changes to this code. First off, we want to use Gemini 3 Pro instead of Gemini 2.0 Flash. So let's make that change. This is the model name for Gemini 3 Pro. Next, I want to change the instruction set. So instead of this single line of instruction, we want to make it a bit more detailed. We also want to give instructions to the agent to site its sources implicitly by providing the answers clearly based on search results. And for this basic search agent, we are giving it one tool which is access to Google search. The final thing we want to do is make some changes here. And we also want to import async io. And that's our basic agent which is built with Gemini 3 Pro and it has access to Google search. Now back in terminal, we are going to be deploying our agent to ADK web. You can now use this link to access your agent. We can now start interacting with our agent in ADK web. I've been meaning to take horse riding lessons in my city and but I just don't know where to get started. So, let me ask about that. So, now we're getting some detailed response from our agent on exactly where I can find these lessons. It has also listed out places and locations where I can get started and also categorized them best in terms of how serious or how basic they are. Let's explore the model's chain of thinking to get to this response. To do this, let's explore the events tab and click on this tab right here with the text. So this text is what is being returned by the model. And then if we go over to the next event, we get to see something very interesting which is the thought signature of Gemini. And the thought signature in Gemini 3 Pro helps the model to understand the context in the conversation. We also see some really interesting data which is the websites that Gemini 3 Pro actually searched. So horseport.com, the best toronto.com, Reddit and many many more. And then if we scroll further, we actually see the web search queries that Gemini 3 Pro does and in what order. So first it starts off by doing a generic search for horse riding lessons Toronto. And then it digs deeper and does uh horseback riding near downtown Toronto and then followed by best horse riding schools Toronto. And at that point, I'm sure it determines some of the names of the horse riding schools available in that area. So you see the searches actually start to get way more specific. And then it even looks up if it's accessible by public transit, which is very interesting. And then it also looks up on the status of whether these stables are actually open. So from just a single prompt of where can I learn horseback riding in Toronto, Gemini 3 was able to go through this chain of thought thinking in order to arrive at this response. And I think that's pretty cool. There's so many more amazing agents that you can build with Gemini 3 Pro and ADK. If you're interested in learning more, check out the links in the description box below. And happy building.

Original Description

Gemini 3 is our most intelligent model yet that helps you bring any idea to life. In this video, you’ll learn how to build an AI Agent with Gemini 3 Pro and the Agent Development Kit (ADK). You’ll explore how to build a single agent with access to Google Search as its tool, and interact with it using a web UI. We will also learn how Gemini 3 Pro uses Thought Signatures and we will explore its chain of thought when the agent receives a prompt. Resources: Getting started with uv → https://goo.gle/4a7M7KG ADK Google Search Tool docs → https://goo.gle/3LGFKUR Github Repo for the AI Agent built with Gemini 3 Pro → https://goo.gle/4pq0pep Timestamps: 0:00 - Introduction to Gemini 3 Pro 0:32 - Initializing the Project & Installing ADK and GenAI libraries 1:25 - Setting up Google AI Studio’s API Key & Creating Agent Scaffolding with ADK Create 2:00 - Implementing the Google Search Tool 2:33 - Configuring the Gemini 3 Pro Model 3:14 - Deploying the Agent to ADK Web 4:29 - Testing the Agent 5:24 - Thought Signatures and Analyzing Chain of Thought 6:40 - Conclusion Speaker: Smitha Kolan Products Mentioned: Gemini, Google AI, Agent Development Kit (ADK)
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Google for Developers · Google for Developers · 0 of 60

← Previous Next →
1 Developer Journey - Sunnyvale DSC Summit ‘19
Developer Journey - Sunnyvale DSC Summit ‘19
Google for Developers
2 How Google is working with students - Sunnyvale DSC Summit ‘19
How Google is working with students - Sunnyvale DSC Summit ‘19
Google for Developers
3 Starting your career in the Cloud - Sunnyvale DSC Summit ‘19
Starting your career in the Cloud - Sunnyvale DSC Summit ‘19
Google for Developers
4 The Solution Challenge  - Sunnyvale DSC Summit ‘19
The Solution Challenge - Sunnyvale DSC Summit ‘19
Google for Developers
5 Firebase - Sunnyvale DSC Summit ‘19
Firebase - Sunnyvale DSC Summit ‘19
Google for Developers
6 Cloud Hero - Sunnyvale DSC Summit ‘19
Cloud Hero - Sunnyvale DSC Summit ‘19
Google for Developers
7 Panel discussion  - Sunnyvale DSC Summit ‘19
Panel discussion - Sunnyvale DSC Summit ‘19
Google for Developers
8 The art of negotiation - Sunnyvale DSC Summit ‘19
The art of negotiation - Sunnyvale DSC Summit ‘19
Google for Developers
9 Courage to care, solve and share - Sunnyvale DSC Summit ‘19
Courage to care, solve and share - Sunnyvale DSC Summit ‘19
Google for Developers
10 Version 9 of Angular, Glass Enterprise Edition 2, path to DX deprecation, & more!
Version 9 of Angular, Glass Enterprise Edition 2, path to DX deprecation, & more!
Google for Developers
11 [DEPRECATING] Introducing a new series (Assistant for Developers Pro Tips)
[DEPRECATING] Introducing a new series (Assistant for Developers Pro Tips)
Google for Developers
12 Detecting memory bugs with HWASan, Bazel 2.1, Next ‘20 session guide, & more!
Detecting memory bugs with HWASan, Bazel 2.1, Next ‘20 session guide, & more!
Google for Developers
13 Why Podcast.app chose a .app domain name
Why Podcast.app chose a .app domain name
Google for Developers
14 Machine Learning Bootcamp Jakarta 2019
Machine Learning Bootcamp Jakarta 2019
Google for Developers
15 Android Studio 3.6, Android 11 Developer Preview, Kubeflow 1.0, & more!
Android Studio 3.6, Android 11 Developer Preview, Kubeflow 1.0, & more!
Google for Developers
16 [DEPRECATING]  Importance of community (Assistant on Air)
[DEPRECATING] Importance of community (Assistant on Air)
Google for Developers
17 Why the Flutter team switched from .io to a .dev domain name
Why the Flutter team switched from .io to a .dev domain name
Google for Developers
18 3 website-building tips from .dev creators
3 website-building tips from .dev creators
Google for Developers
19 Why NimbleDroid chose a .app domain name
Why NimbleDroid chose a .app domain name
Google for Developers
20 Android Platform Codelab, Bazel 2.2, Maps Android Utility Library v1.0, & more!
Android Platform Codelab, Bazel 2.2, Maps Android Utility Library v1.0, & more!
Google for Developers
21 Google for Games Developer Summit: A free, digital experience for game developers
Google for Games Developer Summit: A free, digital experience for game developers
Google for Developers
22 Inspecting Home Graph (Assistant for Developers Pro Tips)
Inspecting Home Graph (Assistant for Developers Pro Tips)
Google for Developers
23 Google for Games Developer Summit Keynote
Google for Games Developer Summit Keynote
Google for Developers
24 Stadia Games & Entertainment presents: Keys to a great game pitch (Google Games Dev Summit)
Stadia Games & Entertainment presents: Keys to a great game pitch (Google Games Dev Summit)
Google for Developers
25 Empowering game developers with Stadia R&D (Google Games Dev Summit)
Empowering game developers with Stadia R&D (Google Games Dev Summit)
Google for Developers
26 Supercharging discoverability with Stadia (Google Games Dev Summit)
Supercharging discoverability with Stadia (Google Games Dev Summit)
Google for Developers
27 Stadia Games & Entertainment presents: Creating for content creators (Google Games Dev Summit)
Stadia Games & Entertainment presents: Creating for content creators (Google Games Dev Summit)
Google for Developers
28 Bringing Destiny to Stadia: A postmortem (Google Games Dev Summit)
Bringing Destiny to Stadia: A postmortem (Google Games Dev Summit)
Google for Developers
29 Live Captioning in Google Slides
Live Captioning in Google Slides
Google for Developers
30 [DEPRECATING]  User engagement for the Google Assistant
[DEPRECATING] User engagement for the Google Assistant
Google for Developers
31 TensorFlow Dev Summit ‘20, Google for Games Dev Summit, Cloud AI Platform Pipelines, & much more!
TensorFlow Dev Summit ‘20, Google for Games Dev Summit, Cloud AI Platform Pipelines, & much more!
Google for Developers
32 Top 5 from the TensorFlow Dev Summit 2020
Top 5 from the TensorFlow Dev Summit 2020
Google for Developers
33 Developer Student Clubs 2019 Turkey Leads Summit
Developer Student Clubs 2019 Turkey Leads Summit
Google for Developers
34 Building simpler payment experiences | Google Pay Plugin for Magento 2
Building simpler payment experiences | Google Pay Plugin for Magento 2
Google for Developers
35 Become A Developer Student Club Lead
Become A Developer Student Club Lead
Google for Developers
36 Firebase Kotlin Extensions, ARM apps on the Android Emulator, Angular v9.1, & more!
Firebase Kotlin Extensions, ARM apps on the Android Emulator, Angular v9.1, & more!
Google for Developers
37 Test suite for Smart Home (Assistant for Developers Pro Tips)
Test suite for Smart Home (Assistant for Developers Pro Tips)
Google for Developers
38 Google Play updates, Bazel 3.0, Business Console for Google Pay, & more!
Google Play updates, Bazel 3.0, Business Console for Google Pay, & more!
Google for Developers
39 How to use error logs (Assistant for Developers Pro Tips)
How to use error logs (Assistant for Developers Pro Tips)
Google for Developers
40 Contact Center AI, Android Studio 4.1 Canary 5, TensorFlow QAT API, & more!
Contact Center AI, Android Studio 4.1 Canary 5, TensorFlow QAT API, & more!
Google for Developers
41 WebView DevTools, Kotlin meets gRPC, Flutter CodePen support, & more! (Episode 200)
WebView DevTools, Kotlin meets gRPC, Flutter CodePen support, & more! (Episode 200)
Google for Developers
42 Offline handling for Smart Home (Assistant for Developers Pro Tips)
Offline handling for Smart Home (Assistant for Developers Pro Tips)
Google for Developers
43 Android 11 Dev Preview 3, Google Fonts for Flutter, Shielded VM, & more!
Android 11 Dev Preview 3, Google Fonts for Flutter, Shielded VM, & more!
Google for Developers
44 Machine Learning Foundations: Ep #1 - What is ML?
Machine Learning Foundations: Ep #1 - What is ML?
Google for Developers
45 Flutter web support updates, BigQuery materialized views, Cloud Spanner emulator, & more!
Flutter web support updates, BigQuery materialized views, Cloud Spanner emulator, & more!
Google for Developers
46 Computer vision by building a neural network with TensorFlow | Machine Learning Foundations
Computer vision by building a neural network with TensorFlow | Machine Learning Foundations
Google for Developers
47 Machine Learning Foundations: Ep #3 - Convolutions and pooling
Machine Learning Foundations: Ep #3 - Convolutions and pooling
Google for Developers
48 Android 11 Beta plans, Flutter 1.17, Dart 2.8, & much more!
Android 11 Beta plans, Flutter 1.17, Dart 2.8, & much more!
Google for Developers
49 Machine Learning Foundations: Ep #4 - Coding with Convolutional Neural Networks
Machine Learning Foundations: Ep #4 - Coding with Convolutional Neural Networks
Google for Developers
50 Google Developers ML Summit
Google Developers ML Summit
Google for Developers
51 Real-world image classification using convolutional neural networks | Machine Learning Foundations
Real-world image classification using convolutional neural networks | Machine Learning Foundations
Google for Developers
52 Adobe XD support for Flutter, Architecture Framework, temporary closures with Places API, & more!
Adobe XD support for Flutter, Architecture Framework, temporary closures with Places API, & more!
Google for Developers
53 Machine Learning Foundations: Ep #6 - Convolutional cats and dogs
Machine Learning Foundations: Ep #6 - Convolutional cats and dogs
Google for Developers
54 Machine Learning Foundations: Ep #7 - Image augmentation and overfitting
Machine Learning Foundations: Ep #7 - Image augmentation and overfitting
Google for Developers
55 Announcing Firebase Live, Flutter Day, Java 11 on Google Cloud Functions, & more!
Announcing Firebase Live, Flutter Day, Java 11 on Google Cloud Functions, & more!
Google for Developers
56 Machine Learning Foundations: Ep #8 - Tokenization for Natural Language Processing
Machine Learning Foundations: Ep #8 - Tokenization for Natural Language Processing
Google for Developers
57 Android 11 Beta, Google Play Asset Delivery, Firebase Crashlytics SDK, & much more!
Android 11 Beta, Google Play Asset Delivery, Firebase Crashlytics SDK, & much more!
Google for Developers
58 Natural Language Processing: Using sequencing APIs in TensorFlow | Machine Learning Foundations
Natural Language Processing: Using sequencing APIs in TensorFlow | Machine Learning Foundations
Google for Developers
59 Build a sarcasm classifier using NLP and TensorFlow | Machine Learning Foundations
Build a sarcasm classifier using NLP and TensorFlow | Machine Learning Foundations
Google for Developers
60 AR Realism with the ARCore Depth API
AR Realism with the ARCore Depth API
Google for Developers

Related Reads

Chapters (9)

Introduction to Gemini 3 Pro
0:32 Initializing the Project & Installing ADK and GenAI libraries
1:25 Setting up Google AI Studio’s API Key & Creating Agent Scaffolding with ADK Cr
2:00 Implementing the Google Search Tool
2:33 Configuring the Gemini 3 Pro Model
3:14 Deploying the Agent to ADK Web
4:29 Testing the Agent
5:24 Thought Signatures and Analyzing Chain of Thought
6:40 Conclusion
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →