From 7e8ca34e5b207394831f85fe316e141af466bde5 Mon Sep 17 00:00:00 2001 From: Elia Secchi Date: Thu, 11 Sep 2025 18:47:50 +0200 Subject: [PATCH 1/2] feat:add asp cr docs --- .python-version | 1 + docs/deploy/cloud-run.md | 17 +++++++++++++++++ main.py | 6 ++++++ pyproject.toml | 7 +++++++ uv.lock | 8 ++++++++ 5 files changed, 39 insertions(+) create mode 100644 .python-version create mode 100644 main.py create mode 100644 pyproject.toml create mode 100644 uv.lock diff --git a/.python-version b/.python-version new file mode 100644 index 000000000..e4fba2183 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/docs/deploy/cloud-run.md b/docs/deploy/cloud-run.md index cb880419a..e8f2d7470 100644 --- a/docs/deploy/cloud-run.md +++ b/docs/deploy/cloud-run.md @@ -5,6 +5,23 @@ is a fully managed platform that enables you to run your code directly on top of To deploy your agent, you can use either the `adk deploy cloud_run` command _(recommended for Python)_, or with `gcloud run deploy` command through Cloud Run. +??? note "Production deployment with Terraform" + For production deployments with infrastructure-as-code, consider using the [Agent Starter Pack](https://github.com/GoogleCloudPlatform/agent-starter-pack). + Run the following command in your existing ADK project directory: + + ```bash + uvx agent-starter-pack enhance --adk -d cloud_run + ``` + + This command upgrades your existing agent project, seamlessly adding: + + **Dockerfile & server** • **Terraform infrastructure** • **Automated CI/CD pipeline** • **Cloud-native observability** + + For more information on using Agent Starter Pack and its command line tools, see the + [CLI reference](https://googlecloudplatform.github.io/agent-starter-pack/cli/enhance.html) + and + [Development guide](https://googlecloudplatform.github.io/agent-starter-pack/guide/development-guide.html). + ## Agent sample For each of the commands, we will reference a the `Capital Agent` sample defined on the [LLM agent](../agents/llm-agents.md) page. We will assume it's in a directory (eg: `capital_agent`). diff --git a/main.py b/main.py new file mode 100644 index 000000000..5a2a9e7fe --- /dev/null +++ b/main.py @@ -0,0 +1,6 @@ +def main(): + print("Hello from adk-docs!") + + +if __name__ == "__main__": + main() diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..4aef8eac7 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[project] +name = "adk-docs" +version = "0.1.0" +description = "Add your description here" +readme = "README.md" +requires-python = ">=3.12" +dependencies = [] diff --git a/uv.lock b/uv.lock new file mode 100644 index 000000000..3fd29a525 --- /dev/null +++ b/uv.lock @@ -0,0 +1,8 @@ +version = 1 +revision = 3 +requires-python = ">=3.12" + +[[package]] +name = "adk-docs" +version = "0.1.0" +source = { virtual = "." } From 5262158165ca2bd20aa55081c63900db5c560415 Mon Sep 17 00:00:00 2001 From: Elia Secchi Date: Thu, 11 Sep 2025 18:49:46 +0200 Subject: [PATCH 2/2] remove files --- .python-version | 1 - main.py | 6 ------ pyproject.toml | 7 ------- uv.lock | 8 -------- 4 files changed, 22 deletions(-) delete mode 100644 .python-version delete mode 100644 main.py delete mode 100644 pyproject.toml delete mode 100644 uv.lock diff --git a/.python-version b/.python-version deleted file mode 100644 index e4fba2183..000000000 --- a/.python-version +++ /dev/null @@ -1 +0,0 @@ -3.12 diff --git a/main.py b/main.py deleted file mode 100644 index 5a2a9e7fe..000000000 --- a/main.py +++ /dev/null @@ -1,6 +0,0 @@ -def main(): - print("Hello from adk-docs!") - - -if __name__ == "__main__": - main() diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 4aef8eac7..000000000 --- a/pyproject.toml +++ /dev/null @@ -1,7 +0,0 @@ -[project] -name = "adk-docs" -version = "0.1.0" -description = "Add your description here" -readme = "README.md" -requires-python = ">=3.12" -dependencies = [] diff --git a/uv.lock b/uv.lock deleted file mode 100644 index 3fd29a525..000000000 --- a/uv.lock +++ /dev/null @@ -1,8 +0,0 @@ -version = 1 -revision = 3 -requires-python = ">=3.12" - -[[package]] -name = "adk-docs" -version = "0.1.0" -source = { virtual = "." }