Let’s build our first Google Vertex AI agent.
Open your Visual Studio Code IDE -> File -> New Folder -> Point to your agent folder on your local disk

Open the terminal : Terminal -> New Terminal
Create a new virtual env:
python -m venv .venv
And activate your virtual environment
.venv\Scripts\Activate.ps1
Let’s install the Google ADK
pip install google-adk
Create an agent using the following command
adk create my_agent
Choose the model for the root agent ->Type ‘1’ and enter

Choose model (Google AI, Vertex AI) -> Type ‘1’

Enter your Google API key. If you don’t have one, quickly create by going to the Google’s AI studio – https://aistudio.google.com/api-keys
Create API Key -> Choose Imported Project ->Select your default project -> Import -> Create Key -> Copy the key

Copy this key and paste it in your Visual studio code terminal:

The agent is now created in your local folder

Now, you can run your agent by typing the following command
adk run my_agent
Now, you can ask questions:


If you want to have an UI experience, you can type the command, type the http address in your browser and the browser will open the web page of the agent
adk web –port 8000

Type your query in the chat window and see your result


Leave a Reply