Skip to content

Commit 90d4c19

Browse files
DeanChensjcopybara-github
authored andcommitted
feat: Migrate vertex ai session service to use agent engine sdk
PiperOrigin-RevId: 816259798
1 parent 3be9cd8 commit 90d4c19

File tree

3 files changed

+432
-380
lines changed

3 files changed

+432
-380
lines changed

src/google/adk/cli/fast_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ def _parse_agent_engine_resource_name(agent_engine_id_or_resource_name):
105105
agent_engine_id = agent_engine_id_or_resource_name.split("/")[-1]
106106
else:
107107
envs.load_dotenv_for_agent("", agents_dir)
108-
project = os.environ["GOOGLE_CLOUD_PROJECT"]
109-
location = os.environ["GOOGLE_CLOUD_LOCATION"]
108+
project = os.environ.get("GOOGLE_CLOUD_PROJECT", None)
109+
location = os.environ.get("GOOGLE_CLOUD_LOCATION", None)
110110
agent_engine_id = agent_engine_id_or_resource_name
111111
return project, location, agent_engine_id
112112

0 commit comments

Comments
 (0)