Skip to content

Commit 48bbe32

Browse files
committed
docs(cloud-run): Clarify multi-agent project structure for Cloud Run deployment
1 parent 99e3903 commit 48bbe32

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/deploy/cloud-run.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,23 @@ export GOOGLE_GENAI_USE_VERTEXAI=True
200200
CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port $PORT"]
201201
```
202202

203+
#### Defining Multiple Agents
204+
205+
You can define and deploy multiple agents within the same Cloud Run instance by creating separate folders in the root of `your-project-directory/`. Each folder represents one agent and must define a `root_agent` in its configuration.
206+
207+
Example structure:
208+
209+
```txt
210+
your-project-directory/
211+
├── capital_agent/
212+
│ ├── __init__.py
213+
│ └── agent.py # contains `root_agent` definition
214+
├── population_agent/
215+
│ ├── __init__.py
216+
│ └── agent.py # contains `root_agent` definition
217+
└── ...
218+
```
219+
203220
#### Deploy using `gcloud`
204221

205222
Navigate to `your-project-directory` in your terminal.

0 commit comments

Comments
 (0)