From e9b659ea7dd12ae2dfbf113f345a5f4fa2257e5e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 03:40:10 +0000 Subject: [PATCH 1/3] Fix: Correct help text formatting for `adk deploy agent_engine` The `Args:` section in the docstring of the `cli_deploy_agent_engine` function was causing formatting issues in the help output, with line breaks not being rendered correctly. This commit removes the redundant `Args:` section from the docstring. The help text for options is already comprehensively covered by the `help` attributes in the `@click.option` decorators, and `click` automatically lists the command's arguments. This change ensures that the help output for `adk deploy agent_engine --help` is clean, readable, and correctly formatted, relying on `click`'s standard help generation mechanisms. --- src/google/adk/cli/cli_tools_click.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/google/adk/cli/cli_tools_click.py b/src/google/adk/cli/cli_tools_click.py index e8da225f0d..5cfeca8b3e 100644 --- a/src/google/adk/cli/cli_tools_click.py +++ b/src/google/adk/cli/cli_tools_click.py @@ -854,23 +854,6 @@ def cli_deploy_agent_engine( ): """Deploys an agent to Agent Engine. - Args: - agent (str): Required. The path to the agent to be deloyed. - project (str): Required. Google Cloud project to deploy the agent. - region (str): Required. Google Cloud region to deploy the agent. - staging_bucket (str): Required. GCS bucket for staging the deployment - artifacts. - trace_to_cloud (bool): Required. Whether to enable Cloud Trace. - adk_app (str): Required. Python file for defining the ADK application. - temp_folder (str): Required. The folder for the generated Agent Engine - files. If the folder already exists, its contents will be replaced. - env_file (str): Required. The filepath to the `.env` file for environment - variables. If it is an empty string, the `.env` file in the `agent` - directory will be used if it exists. - requirements_file (str): Required. The filepath to the `requirements.txt` - file to use. If it is an empty string, the `requirements.txt` file in the - `agent` directory will be used if exists. - Example: adk deploy agent_engine --project=[project] --region=[region] From 463ee7da5fa2ce29f062d17c9f5cb1d367569e01 Mon Sep 17 00:00:00 2001 From: Hangfei Lin Date: Sun, 8 Jun 2025 21:19:56 -0700 Subject: [PATCH 2/3] fix: Update cli_tools_click.py --- src/google/adk/cli/cli_tools_click.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/google/adk/cli/cli_tools_click.py b/src/google/adk/cli/cli_tools_click.py index 5cfeca8b3e..2a0e988c00 100644 --- a/src/google/adk/cli/cli_tools_click.py +++ b/src/google/adk/cli/cli_tools_click.py @@ -854,6 +854,9 @@ def cli_deploy_agent_engine( ): """Deploys an agent to Agent Engine. + Args: + agent (str): Required. The path to the agent to be deloyed. + Example: adk deploy agent_engine --project=[project] --region=[region] From d2d0e89ed1af6ace11abe4e3bed89335dbcf9be5 Mon Sep 17 00:00:00 2001 From: "Wei Sun (Jack)" Date: Mon, 9 Jun 2025 09:35:24 -0700 Subject: [PATCH 3/3] Update cli_tools_click.py --- src/google/adk/cli/cli_tools_click.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/google/adk/cli/cli_tools_click.py b/src/google/adk/cli/cli_tools_click.py index 2a0e988c00..303f18b130 100644 --- a/src/google/adk/cli/cli_tools_click.py +++ b/src/google/adk/cli/cli_tools_click.py @@ -854,8 +854,7 @@ def cli_deploy_agent_engine( ): """Deploys an agent to Agent Engine. - Args: - agent (str): Required. The path to the agent to be deloyed. + AGENT: The path to the agent source code folder. Example: