google adk deploying to Agentic Platform

To deploy to Agentic ADK to Agentic Platform (Vertex AI), we need to run setup our .env file. 

Pre-requisite 

https://github.com/GoogleCloudPlatform/agent-starter-pack


GOOGLE_CLOUD_PROJECT=YOUR-PROJECT-ID
GOOGLE_CLOUD_LOCATION=us-central1
GOOGLE_GENAI_USE_VERTEXAI=TRUE
MAPS_API_KEY=YOUR-MAP-API-KEY

You can change the name of your agentic application by modifying this file "app/app_utils/deploy.py" and then 


@click.option(
    "--display-name",
    default="property-location-strategy-uat", # change your application name here
    help="Display name for the agent engine",
)

There are other configuration like location and service account. 

Run the following command:- 

make deploy IAP=true

Example output:

Behind the scene, it is using Vertex AI's agent_engines.update to do its deployment


remote_agent = client.agent_engines.update(
            name=matching_agents[0].api_resource.name, config=config
        )

After you deploy, you can quickly test it out using playground as shown here:-








Comments

Popular posts from this blog

vllm : Failed to infer device type

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

android studio kotlin source is null error