Skip to content

Commit 4100a24

Browse files
haranrkcopybara-github
authored andcommitted
chore: replace vertexai with enterprise in samples and docs
Co-authored-by: Haran Rajkumar <haranrk@google.com> PiperOrigin-RevId: 930146494
1 parent 68221f0 commit 4100a24

24 files changed

Lines changed: 172 additions & 131 deletions

File tree

.agents/skills/adk-agent-builder/references/getting-started.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ Step-by-step guide covering environment setup, basic LLM agents, and workflow ag
44

55
## 📋 New Agent Checklist
66
Use this checklist when creating a new agent to ensure it follows convention:
7+
78
- [ ] **Directory**: Is there a directory for the agent?
89
- [ ] **__init__.py**: Does it contain `from . import agent`?
910
- [ ] **agent.py**: Does it define `root_agent` or `app`?
1011
- [ ] **.env**: Is there a `.env` file with the appropriate API keys? (Do not commit to git)
1112

1213
## 💡 Quick Reference (CLI Commands)
14+
1315
- **Create**: `adk create <agent_name>` (Scaffolds a new agent project)
1416
- **Web UI**: `adk web <path_to_agent_dir>` (Starts dev server at localhost:8000)
1517
- **Run CLI**: `adk run <path_to_agent_dir>` (Interactive or query mode)
@@ -44,7 +46,7 @@ Obtain an API key from [Google AI Studio](https://aistudio.google.com/app/apikey
4446
Create a `.env` file in the agent directory:
4547

4648
```
47-
GOOGLE_GENAI_USE_VERTEXAI=FALSE
49+
GOOGLE_GENAI_USE_ENTERPRISE=FALSE
4850
GOOGLE_API_KEY=YOUR_API_KEY
4951
```
5052

@@ -53,7 +55,7 @@ GOOGLE_API_KEY=YOUR_API_KEY
5355
For production use with Google Cloud:
5456

5557
```
56-
GOOGLE_GENAI_USE_VERTEXAI=TRUE
58+
GOOGLE_GENAI_USE_ENTERPRISE=TRUE
5759
GOOGLE_CLOUD_PROJECT=your-project-id
5860
GOOGLE_CLOUD_LOCATION=us-central1
5961
```
@@ -65,7 +67,7 @@ Run `gcloud auth application-default login` to authenticate.
6567
Combines Vertex AI with API key authentication:
6668

6769
```
68-
GOOGLE_GENAI_USE_VERTEXAI=TRUE
70+
GOOGLE_GENAI_USE_ENTERPRISE=TRUE
6971
GOOGLE_API_KEY=YOUR_EXPRESS_MODE_KEY
7072
```
7173

contributing/samples/adk_team/adk_answering_agent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pip install google-cloud-storage google-cloud-discoveryengine
110110
The following environment variables are required for the agent to connect to the necessary services.
111111

112112
- `GITHUB_TOKEN=YOUR_GITHUB_TOKEN`: **(Required)** A GitHub Personal Access Token with `issues:write` permissions. Needed for both interactive and workflow modes.
113-
- `GOOGLE_GENAI_USE_VERTEXAI=TRUE`: **(Required)** Use Google Vertex AI for the authentication.
113+
- `GOOGLE_GENAI_USE_ENTERPRISE=TRUE`: **(Required)** Use Google Vertex AI for the authentication.
114114
- `GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID`: **(Required)** The Google Cloud project ID.
115115
- `GOOGLE_CLOUD_LOCATION=LOCATION`: **(Required)** The Google Cloud region.
116116
- `VERTEXAI_DATASTORE_ID=YOUR_DATASTORE_ID`: **(Required)** The full Vertex AI datastore ID for the document store (i.e. knowledge base), with the format of `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{datastore_id}`.

contributing/samples/adk_team/adk_knowledge_agent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here are the steps to deploy the agent:
1515
```bash
1616
export GOOGLE_CLOUD_PROJECT=your-project-id
1717
export GOOGLE_CLOUD_LOCATION=us-central1 # Or your preferred location
18-
export GOOGLE_GENAI_USE_VERTEXAI=True
18+
export GOOGLE_GENAI_USE_ENTERPRISE=True
1919
```
2020

2121
2. Run the deployment command

contributing/samples/context_management/postgres_session_service/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Create a `.env` file:
136136
POSTGRES_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/adk_sessions
137137
GOOGLE_CLOUD_PROJECT=<your-gcp-project-id>
138138
GOOGLE_CLOUD_LOCATION=us-central1
139-
GOOGLE_GENAI_USE_VERTEXAI=true
139+
GOOGLE_GENAI_USE_ENTERPRISE=true
140140
```
141141

142142
Or run export command.
@@ -145,7 +145,7 @@ Or run export command.
145145
export POSTGRES_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/adk_sessions
146146
export GOOGLE_CLOUD_PROJECT=$(gcloud config get-value project)
147147
export GOOGLE_CLOUD_LOCATION=us-central1
148-
export GOOGLE_GENAI_USE_VERTEXAI=true
148+
export GOOGLE_GENAI_USE_ENTERPRISE=true
149149
```
150150

151151
### 3. Run the Agent

contributing/samples/context_management/static_instruction/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Create a `.env` file in the project root with your API credentials:
3030

3131
```bash
3232
# Choose Model Backend: 0 -> ML Dev, 1 -> Vertex
33-
GOOGLE_GENAI_USE_VERTEXAI=1
33+
GOOGLE_GENAI_USE_ENTERPRISE=1
3434

3535
# ML Dev backend config
3636
GOOGLE_API_KEY=your_google_api_key_here

contributing/samples/integrations/authn-adk-all-in-one/adk_agents/sample.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# General Agent Configuration
2-
GOOGLE_GENAI_USE_VERTEXAI=False
2+
GOOGLE_GENAI_USE_ENTERPRISE=False
33
GOOGLE_API_KEY=NOT_SET
44
GOOGLE_MODEL=gemini-2.5-flash
55
OAUTH_CLIENT_ID=abc123

contributing/samples/integrations/bigquery/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ or
6767
for the LLM service for your agent. For example, for using Google AI Studio you
6868
would set:
6969

70-
- GOOGLE_GENAI_USE_VERTEXAI=FALSE
70+
- GOOGLE_GENAI_USE_ENTERPRISE=FALSE
7171
- GOOGLE_API_KEY={your api key}
7272

7373
### With Application Default Credentials

contributing/samples/integrations/bigquery_mcp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ or
4040
for the LLM service for your agent. For example, for using Google AI Studio you
4141
would set:
4242

43-
- GOOGLE_GENAI_USE_VERTEXAI=FALSE
43+
- GOOGLE_GENAI_USE_ENTERPRISE=FALSE
4444
- GOOGLE_API_KEY={your api key}
4545

4646
Then run the agent using `adk run .` or `adk web .` in this directory.

contributing/samples/integrations/bigtable/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ or
3434
for the LLM service for your agent. For example, for using Google AI Studio you
3535
would set:
3636

37-
- GOOGLE_GENAI_USE_VERTEXAI=FALSE
37+
- GOOGLE_GENAI_USE_ENTERPRISE=FALSE
3838
- GOOGLE_API_KEY={your api key}
3939

4040
### With Application Default Credentials

contributing/samples/integrations/files_retrieval_agent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export GOOGLE_API_KEY="your-api-key"
3737
**Vertex AI:**
3838

3939
```bash
40-
export GOOGLE_GENAI_USE_VERTEXAI=1
40+
export GOOGLE_GENAI_USE_ENTERPRISE=1
4141
export GOOGLE_CLOUD_PROJECT="your-project-id"
4242
export GOOGLE_CLOUD_LOCATION="us-central1"
4343
```

0 commit comments

Comments
 (0)