Skip to main content
This example docstring names BQTools, and its Agent instruction names run_sql. The imported toolkit is GoogleBigQueryTools; its registered SQL function is run_sql_query.
google_bigquery_tools.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Authenticate with Google Cloud

Sign in with Application Default Credentials:
5

Run the example

Save the code above as google_bigquery_tools.py, then run:
Full source: cookbook/91_tools/google_bigquery_tools.py