Skip to content

Commit ef997c8

Browse files
authored
fix: getting started and installation docs (#166)
* fix: getting started and installation docs * fix: getting started and installation docs
1 parent 4dc7b38 commit ef997c8

File tree

5 files changed

+46
-57
lines changed

5 files changed

+46
-57
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Ready to build your AI agent? Simply run this command:
3131

3232
```bash
3333
# Create and activate a Python virtual environment
34-
python -m venv venv && source venv/bin/activate
34+
python -m venv .venv && source .venv/bin/activate
3535

3636
# Install the agent starter pack
3737
pip install agent-starter-pack

docs/guide/getting-started.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ This guide quickly walks you through setting up your first agent project.
1313

1414
```bash
1515
# Create and activate a Python virtual environment (Recommended)
16-
python -m venv venv
17-
source venv/bin/activate # On Windows: venv\Scripts\activate
16+
python -m venv .venv
17+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
1818

1919
# Install the package
2020
pip install agent-starter-pack
2121
```
22+
Check the [Installation Guide](/guide/installation) for alternative installation methods.
2223

2324
### 2. Create Your Agent Project
2425

@@ -62,10 +63,8 @@ Inside your new project directory (`my-awesome-agent`), you'll find:
6263

6364
### Next Steps
6465

65-
You're ready to go!
66+
You're ready to go! See the [Development Guide](/guide/development-guide) for detailed instructions on extending, customizing and deploying your agent.
6667

67-
* **Customize:** Modify the code in `app/` to edit prompts, configure tools, adjust API endpoints, customize business logic, extend functionality!
68-
* **Deploy in minutes:** Use the [setup-cicd](/cli/setup_cicd) command.
69-
* **Customized the deployment:** Use Terraform in `deployment/` to deploy to Google Cloud or follow the deployment guide ([Deployment Guide](/guide/deployment)).
70-
* **Add Data (RAG):** Configure [Data Ingestion](/guide/data-ingestion).
71-
* **Monitor:** Explore [Observability](/guide/observability) features.
68+
- **Add Data (RAG):** Configure [Data Ingestion](/guide/data-ingestion) for knowledge-based agents.
69+
- **Monitor Performance:** Explore [Observability](/guide/observability) features for production monitoring.
70+
- **Deploy to Production:** Follow the [Deployment Guide](/guide/deployment) to deploy your agent to Google Cloud.

docs/guide/installation.md

Lines changed: 34 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,64 @@
11
# Installation
22

3-
There are several ways to install the Agent Starter Pack. Choose the method that works best for your workflow. You can also [try it in Firebase Studio](https://studio.firebase.google.com/new?template=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fagent-starter-pack%2Ftree%2Fmain%2Fsrc%2Fresources%2Fid), a cloud-based development environment with zero setup.
3+
There are several ways to install the Agent Starter Pack. Choose the method that works best for your workflow.
44

5-
## Using pipx (Recommended)
5+
**Want zero setup?** 👉 [Try in Firebase Studio](https://studio.firebase.google.com/new?template=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fagent-starter-pack%2Ftree%2Fmain%2Fsrc%2Fresources%2Fidx) or in [Cloud Shell](https://shell.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Feliasecchig%2Fasp-open-in-cloud-shell&cloudshell_print=open-in-cs)
66

7-
The recommended way to install the Agent Starter Pack is with [pipx](https://pypa.github.io/pipx/), which installs the package in an isolated environment while making the commands globally available:
7+
## `uvx` for Quick Project Creation
88

9+
If you have [uv](https://astral.sh/uv) installed, you can create projects without a permanent installation:
910
```bash
10-
# Install pipx if you don't have it
11-
python3 -m pip install --user pipx && python3 -m pipx ensurepath
12-
source ~/.bashrc # or ~/.zshrc depending on your shell
13-
14-
# Install the Agent Starter Pack
15-
pipx install agent-starter-pack
11+
uvx agent-starter-pack create my-awesome-agent
1612
```
1713

18-
## Using pip with a virtual environment
14+
## Virtual Environment Installation
1915

20-
You can also install the Agent Starter Pack in a virtual environment:
16+
Installs into an isolated Python environment.
2117

2218
```bash
23-
# Create and activate a Python virtual environment
24-
python -m venv venv && source venv/bin/activate
19+
# Create and activate venv
20+
python -m venv .venv && source .venv/bin/activate # source .venv/Scripts/activate for Windows Git Bash
2521

26-
# Install the Agent Starter Pack
22+
# Install using pip or uv
2723
pip install agent-starter-pack
2824
```
2925

30-
## Using uv (Fast Python package installer)
26+
## Persistent CLI Installation
3127

32-
For a faster installation experience, you can use [uv](https://astral.sh/uv):
28+
Installs the `agent-starter-pack` command globally.
3329

30+
### With `pipx` (Isolated Global Tool)
3431
```bash
35-
# Install uv if you don't have it
36-
curl -LsSf https://astral.sh/uv/install.sh | sh
37-
38-
# For sh, bash, zsh
39-
# For fish: source $HOME/.local/bin/env.fish
40-
source $HOME/.local/bin/env
32+
# Install pipx (if needed)
33+
python3 -m pip install --user pipx && python3 -m pipx ensurepath
4134

42-
# Install the Agent Starter Pack
43-
uv tool install agent-starter-pack
35+
# Install Agent Starter Pack
36+
pipx install agent-starter-pack
4437
```
4538

46-
## Getting Started
47-
48-
After installation, you can create a new agent project:
49-
39+
### With `uv tool install` (Fast, Isolated Global Tool)
40+
Requires `uv` (see `uvx` section for install).
5041
```bash
51-
# Create a new agent project
52-
agent-starter-pack create my-awesome-agent
42+
uv tool install agent-starter-pack
5343
```
5444

45+
## Create Project (After Persistent/Venv Install)
5546

56-
## Upgrading
57-
58-
To upgrade, use the same tool you used for installation:
59-
47+
If you installed via `pipx`, `uv tool install`, or in a virtual environment:
6048
```bash
61-
pipx upgrade agent-starter-pack # Using pipx
62-
pip install --upgrade agent-starter-pack # Using pip
63-
uv pip install --upgrade agent-starter-pack # Using uv
49+
agent-starter-pack create my-awesome-agent
6450
```
6551

66-
## Uninstalling
52+
## Managing Installation
6753

68-
To uninstall, use the same tool you used for installation:
54+
### Upgrading
55+
* **`uvx`:** Not needed (always uses latest).
56+
* **`pipx`:** `pipx upgrade agent-starter-pack`
57+
* **`uv tool`:** `uv tool install agent-starter-pack` (this upgrades)
58+
* **`pip`/`uv pip` (in .venv):** `(uv) pip install --upgrade agent-starter-pack`
6959

70-
```bash
71-
pipx uninstall agent-starter-pack # Using pipx
72-
pip uninstall agent-starter-pack # Using pip
73-
uv tool uninstall agent-starter-pack # Using uv
74-
```
60+
### Uninstalling
61+
* **`uvx`:** Not applicable.
62+
* **`pipx`:** `pipx uninstall agent-starter-pack`
63+
* **`uv tool`:** `uv tool uninstall agent-starter-pack`
64+
* **`pip`/`uv pip` (in .venv):** `(uv) pip uninstall agent-starter-pack`

src/deployment_targets/agent_engine/tests/load_test/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Follow these steps to execute load tests:
1919

2020
```bash
2121
# Create and activate virtual environment
22-
python3 -m venv locust_env
23-
source locust_env/bin/activate
22+
python3 -m venv .locust_env
23+
source .locust_env/bin/activate
2424

2525
# Install required packages
2626
pip install locust==2.31.1 "google-cloud-aiplatform[langchain,reasoningengine]>=1.77.0"

src/deployment_targets/cloud_run/tests/load_test/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ uv run uvicorn app.server:app --host 0.0.0.0 --port 8000 --reload
1818
Using another terminal tab, This is suggested to avoid conflicts with the existing application python environment.
1919

2020
```bash
21-
python3 -m venv locust_env && source locust_env/bin/activate && pip install locust==2.31.1
21+
python3 -m venv .locust_env && source locust_env/bin/activate && pip install locust==2.31.1
2222
```
2323

2424
**3. Execute the Load Test:**
@@ -69,7 +69,7 @@ export _ID_TOKEN=$(gcloud auth print-identity-token -q)
6969
**3. Execute the Load Test:**
7070
Create virtual environment with Locust:
7171
```bash
72-
python3 -m venv locust_env && source locust_env/bin/activate && pip install locust==2.31.1
72+
python3 -m venv .locust_env && source locust_env/bin/activate && pip install locust==2.31.1
7373
```
7474

7575
Execute load tests. The following command executes the same load test parameters as the local test but targets your remote Cloud Run instance.

0 commit comments

Comments
 (0)