-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup_gcp_credentials.sh.example
More file actions
28 lines (23 loc) · 1.07 KB
/
Copy pathsetup_gcp_credentials.sh.example
File metadata and controls
28 lines (23 loc) · 1.07 KB
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
#!/bin/bash
# Use Application Default Credentials (ADC) for local development
# This is the recommended approach according to ADK docs
unset GOOGLE_APPLICATION_CREDENTIALS
export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"
export GOOGLE_CLOUD_LOCATION="us-central1"
export GOOGLE_GENAI_USE_VERTEXAI="TRUE"
# Additional environment variables for data science agents
export ROOT_AGENT_MODEL="gemini-2.5-flash"
export BQML_AGENT_MODEL="gemini-2.5-flash"
export BIGQUERY_AGENT_MODEL="gemini-2.5-flash"
export ANALYTICS_AGENT_MODEL="gemini-2.5-flash"
export BASELINE_NL2SQL_MODEL="gemini-2.5-flash"
# BigQuery settings
export BQ_DATA_PROJECT_ID="YOUR_PROJECT_ID"
export BQ_COMPUTE_PROJECT_ID="YOUR_PROJECT_ID"
echo "✅ Google Cloud ADC credentials and environment variables set successfully!"
echo "Project: $GOOGLE_CLOUD_PROJECT"
echo "Location: $GOOGLE_CLOUD_LOCATION"
echo "Authentication: Application Default Credentials (ADC)"
echo ""
echo "Note: Make sure you've run 'gcloud auth application-default login' first."
echo "Note: Replace YOUR_PROJECT_ID with your actual Google Cloud project ID."