Skip to content

Commit 9011fcf

Browse files
docs(cloud-run): Clarify multi-agent project structure for Cloud Run deployment (#245)
Co-authored-by: Lavi Nigam <[email protected]>
1 parent 9e6a08f commit 9011fcf

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
@@ -208,6 +208,23 @@ export GOOGLE_GENAI_USE_VERTEXAI=True
208208
CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port $PORT"]
209209
```
210210

211+
#### Defining Multiple Agents
212+
213+
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.
214+
215+
Example structure:
216+
217+
```txt
218+
your-project-directory/
219+
├── capital_agent/
220+
│ ├── __init__.py
221+
│ └── agent.py # contains `root_agent` definition
222+
├── population_agent/
223+
│ ├── __init__.py
224+
│ └── agent.py # contains `root_agent` definition
225+
└── ...
226+
```
227+
211228
#### Deploy using `gcloud`
212229

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

0 commit comments

Comments
 (0)