Skip to content

Commit 97b950b

Browse files
DeanChensjcopybara-github
authored andcommitted
feat: Migrate vertex_ai_session_service to use Agent Engine SDK
PiperOrigin-RevId: 814948921
1 parent 960eda3 commit 97b950b

File tree

3 files changed

+426
-384
lines changed

3 files changed

+426
-384
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)