Follow the slides for steps: Slides
- Create a brand new Gmail account ad activate free cloud trial (worth $300)
- go to https://console.cloud.google.com/
- Click create "Create a project"
- Enter project name
- Select "No Orginization" under Parent resource
- Click "Activate Cloud Shell" on the top right
- Make sure you the terminal shows the project id correctly
- You may be asked to
- Click "Open editor"
Codelab link: https://codelabs.developers.google.com/adkcourse/instructions
git clone https://github.com/cuppibla/adk_tutorial.git
cd adk_tutorial- Create a Google Cloud Project (Free Trial with $300 credits)
- Authenticate:
gcloud auth login
gcloud auth application-default login- Enable APIs:
gcloud services enable aiplatform.googleapis.comOptional services (For Deployment only - won't be covered during the workshop)
gcloud services enable \
run.googleapis.com \
cloudbuild.googleapis.com
cloudshell edit .envGOOGLE_GENAI_USE_VERTEXAI=TRUE
GOOGLE_CLOUD_PROJECT=<PROJECT_ID>
GOOGLE_CLOUD_LOCATION=global
adk web- a_single_agent - Plan a trip from Sunnyvale to San Francisco this weekend, I love food and art.
- b2_parallel_agent - Plan my trip to San Francisco, I want to find some good concert, restaurant and museum.
- b1_sequential_agent - Find a good sushi near Stanford and tell me how to get there.
- b3_loop_agent - Plan a trip from Sunnyvale to San Francisco today.
- c_custom_agent - Plan a trip from Sunnyvale to San Francisco this weekend, I love food and art. Make sure within budget of 100 dollars.
- d_routing_agent - Plan a trip from Sunnyvale to San Francisco this weekend, I love concert, restaurant and museum.
- e_agent_as_tool - Plan a trip from Sunnyvale to San Francisco this weekend, I love concert, restaurant and museum.
Follow Step 8 of the codelab.
If you have issues with the toolbox, follow the workaround below.
cd ~/adk_tutorial/mcp_tool_box
rm -f toolbox
export VERSION=0.16.0
export OS=linux/amd64
curl -L -o toolbox https://storage.googleapis.com/genai-toolbox/v$VERSION/$OS/toolbox
chmod +x toolboxcd ~/adk_tutorial/mcp_tool_box
./toolbox --tools-file "trip_tools.yaml" --port 7001cd ~/adk_tutorial
set -a
source .env
set +a
source .adk_env/bin/activate
cd g_agents_mcp
python -u main.pySometimes, killing the terminal and restarting the server works too!
What are the top-rated things to do in Tokyo?
Show me the museums in Rome.
What can I do in New York for under 25 dollars?If you close Cloud Shell or return later, follow these steps.
- https://console.cloud.google.com
- Launch Cloud Shell.
cd ~/adk_tutorial
source .adk_env/bin/activategcloud auth listIf required:
gcloud auth loginVerify the project:
gcloud config get-value projectIf needed:
gcloud config set project YOUR_PROJECT_IDgcloud auth application-default login(Optional)
gcloud auth application-default print-access-tokencloudshell edit .envGOOGLE_GENAI_USE_VERTEXAI=TRUE
GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID
GOOGLE_CLOUD_LOCATION=global
Make sure to set it to global location.
adk webOpen the forwarded URL on port 8000.
If you receive 403 PERMISSION_DENIED or Application Default Credentials not found, run:
gcloud auth application-default logingcloud auth application-default login is different from gcloud auth login. Both may be required when using Vertex AI.