This document describes how to manage parameters for external services in Agent Development Kit (ADK).
Required roles
To get the permissions that
you need to configure the integration,
ask your administrator to grant you the
Parameter Manager Admin (roles/parametermanager.admin) IAM role on the parameter, project, folder, or organization.
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
Before you begin
Complete the following prerequisites before you configure the integration.
- Set up an agent with ADK. This feature requires ADK version
adk-python 1.30or higher. Install the ADK extensions package to enable the Parameter Manager integration:
pip install "google-adk[extensions]"Enable the Parameter Manager and Secret Manager APIs:
gcloud services enable parametermanager.googleapis.com secretmanager.googleapis.com
Configure access permissions
To retrieve parameters and resolve secrets at runtime, grant the necessary IAM permissions to your agent identity and parameter resources.
Create a parameter and parameter version in Parameter Manager.
Grant the
Parameter Manager Accessorrole (roles/parametermanager.parameterAccessor) to your agent identity. This role allows your agent to render the parameter configuration at runtime.If your parameter contains embedded secrets, grant the
Secret Manager Secret Accessorrole (roles/secretmanager.secretAccessor) to your parameter resource. This cross-service permission allows Parameter Manager to resolve the referenced secrets on behalf of the agent. For more information, see Grant the Secret Manager Secret Accessor role to the parameter.
Implementation example
The following code sample demonstrates how to use ParameterManagerClient module to
retrieve a parameter securely within an ADK agent. The agent retrieves
the secrets embedded in parameters internally to prevent exposure of sensitive credentials to the Large
Language Model (LLM) context window or conversation history.
Global parameters
Python
To run this code, first set up a Python development environment and install the Parameter Manager Python SDK. On Compute Engine or GKE, you must authenticate with the cloud-platform scope.
Regional parameters
Python
To run this code, first set up a Python development environment and install the Parameter Manager Python SDK. On Compute Engine or GKE, you must authenticate with the cloud-platform scope.
Manage regional endpoints
The ADK integration supports diverse infrastructure requirements through both
global and regional API endpoints. By default, the client uses the global
endpoint (parametermanager.googleapis.com). If your architecture requires data
residency or regional isolation, you can initialize the client with a specific
Google Cloud region (such as us-central1). The client then automatically
constructs and routes requests to the appropriate regional endpoint
(parametermanager.{location}.rep.googleapis.com).
What's next
- Explore Agent Development Kit.