Merge https://github.com/google/adk-python/pull/2447 This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling) The misspellings have been reported at https://github.com/jsoref/adk-python/actions/runs/16840838898/attempts/1#summary-47711379253 The action reports that the changes in this PR would make it happy: https://github.com/jsoref/adk-python/actions/runs/16840839269/attempts/1#summary-47711380479 Note: while I use tooling to identify errors, the tooling doesn't _actually_ provide the corrections, I'm picking them on my own. I'm a human, and I may make mistakes. I've included a couple of changes to make CI happy. Personally, I object to CI being in a state of "random drive by person who adds a blank line in the middle of a file must fix all the preexisting bugs in the file", but that appears to be the state for this repository. COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/2447 from jsoref:spelling d85398e7fd154d124d477c6af6181481a01f34e0 PiperOrigin-RevId: 827629615
Google API Tools Sample
Introduction
This sample tests and demos Google API tools available in the
google.adk.tools.google_api_tool module. We pick the following BigQuery API
tools for this sample agent:
-
bigquery_datasets_list: List user's datasets. -
bigquery_datasets_get: Get a dataset's details. -
bigquery_datasets_insert: Create a new dataset. -
bigquery_tables_list: List all tables in a dataset. -
bigquery_tables_get: Get a table's details. -
bigquery_tables_insert: Insert a new table into a dataset.
How to use
-
Follow https://developers.google.com/identity/protocols/oauth2#1.-obtain-oauth-2.0-credentials-from-the-dynamic_data.setvar.console_name. to get your client id and client secret. Be sure to choose "web" as your client type.
-
Configure your
.envfile to add two variables:
- OAUTH_CLIENT_ID={your client id}
- OAUTH_CLIENT_SECRET={your client secret}
Note: don't create a separate .env file , instead put it to the same .env file that stores your Vertex AI or Dev ML credentials
- Follow https://developers.google.com/identity/protocols/oauth2/web-server#creatingcred to add http://localhost/dev-ui/ to "Authorized redirect URIs".
Note: localhost here is just a hostname that you use to access the dev ui, replace it with the actual hostname you use to access the dev ui.
- For 1st run, allow popup for localhost in Chrome.
Sample prompt
Do I have any datasets in project sean-dev-agent ?Do I have any tables under it ?could you get me the details of this table ?Can you help to create a new dataset in the same project? id : sean_test , location: uscould you show me the details of this new dataset ?could you create a new table under this dataset ? table name : sean_test_table. column1 : name is id , type is integer, required. column2 : name is info , type is string, required. column3 : name is backup , type is string, optional.