Skip to content

Fix: Add missing --agent_engine_id option to adk deploy cloud_run command #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

devxaitist
Copy link

Description

This PR addresses issue #303 by implementing the --agent_engine_id option for the adk deploy cloud_run command, which was documented but not recognized when executing the command.

Changes made:

  1. Added the --agent_engine_id option to the CLI parser for the deploy cloud_run command
  2. Updated the Dockerfile template to properly use this parameter by converting it to the required session_db_url format

Implementation Approach

The implementation converts the provided agent_engine_id into the appropriate session_db_url format (agentengine://your-agent-engine-id) to properly connect to Vertex AI Agent Engine for session persistence.

Testing Status

I'm submitting this as a draft PR first. I plan to:

  1. Set up a testing environment
  2. Verify that the command no longer produces an error about unrecognized option
  3. Confirm that the deployed agent successfully connects to the specified Agent Engine
  4. Convert this to a ready PR and request reviews once testing is complete

Any testing guidance from the team would be appreciated.

Fixes #303 (when complete)

Add the --agent_engine_id option to the deploy cloud_run CLI command
that was documented but not implemented. This allows users to connect
their deployed agent to a Vertex AI Agent Engine for session persistence.

Part of google#303
Update the Dockerfile template to use the agent_engine_id parameter
by converting it to the required session_db_url format. This enables
proper connection to Vertex AI Agent Engine when deploying to Cloud Run.

Fixes google#303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

adk deploy cloud_run: Option --agent_engine_id documented but not recognized
1 participant