Skip to content

Commit 684a9ee

Browse files
docs: Update google-cloud-tools.md rendering (#390)
* Update google-cloud-tools.md rendering * Update ApplicationIntegrationToolset
1 parent 33b6027 commit 684a9ee

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

docs/tools/google-cloud-tools.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,15 @@ Connect your agent to enterprise applications using
222222
)
223223
```
224224

225-
Note:
226-
- You can provide service account to be used instead of using default
227-
credentials by generating [Service Account Key](https://cloud.google.com/iam/docs/keys-create-delete#creating) and providing right Application Integration and Integration Connector IAM roles to the service account.
228-
- To find the list of supported entities and actions for a connection, use the connectors apis:
229-
[listActions](https://cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections.connectionSchemaMetadata/listActions) or
230-
[listEntityTypes](https://cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections.connectionSchemaMetadata/listEntityTypes)
225+
**Note:**
226+
227+
* You can provide service account to be used instead of using default credentials by generating [Service Account Key](https://cloud.google.com/iam/docs/keys-create-delete#creating) and providing right Application Integration and Integration Connector IAM roles to the service account.
228+
* To find the list of supported entities and actions for a connection, use the connectors apis: [listActions](https://cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections.connectionSchemaMetadata/listActions) or [listEntityTypes](https://cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.connections.connectionSchemaMetadata/listEntityTypes)
229+
231230

232-
`ApplicationIntegrationToolset` now also supports providing auth_scheme and auth_credential for dynamic OAuth2 authentication for Integration Connectors. To use it create a tool similar to this within your `tools.py` file:
231+
`ApplicationIntegrationToolset` now also supports providing auth_scheme and auth_credential for dynamic OAuth2 authentication for Integration Connectors. To use it, create a tool similar to this within your `tools.py` file:
233232

234-
```py
233+
```py
235234
from google.adk.tools.application_integration_tool.application_integration_toolset import ApplicationIntegrationToolset
236235
from google.adk.tools.openapi_tool.auth.auth_helpers import dict_to_auth_scheme
237236
from google.adk.auth import AuthCredential
@@ -255,7 +254,7 @@ Connect your agent to enterprise applications using
255254
},
256255
}
257256
258-
oauth2_scheme = dict_to_auth_scheme(oauth2_data_google_cloud)
257+
oauth_scheme = dict_to_auth_scheme(oauth2_data_google_cloud)
259258
260259
auth_credential = AuthCredential(
261260
auth_type=AuthCredentialTypes.OAUTH2,
@@ -274,7 +273,7 @@ Connect your agent to enterprise applications using
274273
service_account_credentials='{...}', # optional. Stringified json for service account key
275274
tool_name_prefix="tool_prefix2",
276275
tool_instructions="...",
277-
auth_scheme=auth_scheme,
276+
auth_scheme=oauth_scheme,
278277
auth_credential=auth_credential
279278
)
280279
```

0 commit comments

Comments
 (0)