Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Set the following environment variables before starting the Gemini CLI. These va
```bash
export BIGQUERY_PROJECT="<your-gcp-project-id>"
export BIGQUERY_LOCATION="<your-dataset-location>" # Optional
export BIGQUERY_SCOPES="https://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/drive" # Optional
export BIGQUERY_MAX_QUERY_RESULT_ROWS=50 # Optional
```

Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
Expand Down
12 changes: 11 additions & 1 deletion gemini-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
"name": "Location",
"description": "(Optional) Location of the BigQuery resources",
"envVar": "BIGQUERY_LOCATION"
},
{
"name": "Authorization Scopes",
"description": "(Optional) Authorization scopes for Google APIs (Dataplex, Conversational API, BigQuery), comma-separated",
"envVar": "BIGQUERY_SCOPES"
},
{
"name": "Maximum Query Result Rows",
"description": "(Optional) Maximum number of rows to return from BigQuery query results",
"envVar": "BIGQUERY_MAX_QUERY_RESULT_ROWS"
}
]
}
}
2 changes: 2 additions & 0 deletions tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ sources:
project: ${BIGQUERY_PROJECT}
location: ${BIGQUERY_LOCATION:}
useClientOAuth: ${BIGQUERY_USE_CLIENT_OAUTH:false}
scopes: ${BIGQUERY_SCOPES:}
maxQueryResultRows: ${BIGQUERY_MAX_QUERY_RESULT_ROWS:50}

tools:
ask_data_insights:
Expand Down
Loading