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