@@ -245,12 +245,13 @@ def cli_eval(
245
245
@click .option (
246
246
"--session_db_url" ,
247
247
help = (
248
- "Optional. The database URL to store the session.\n \n - Use"
249
- " 'agentengine://<agent_engine_resource_id>' to connect to Vertex"
250
- " managed session service.\n \n - Use 'sqlite://<path_to_sqlite_file>'"
251
- " to connect to a SQLite DB.\n \n - See"
252
- " https://docs.sqlalchemy.org/en/20/core/engines.html#backend-specific-urls"
253
- " for more details on supported DB URLs."
248
+ """Optional. The database URL to store the session.
249
+
250
+ - Use 'agentengine://<agent_engine_resource_id>' to connect to Agent Engine sessions.
251
+
252
+ - Use 'sqlite://<path_to_sqlite_file>' to connect to a SQLite DB.
253
+
254
+ - See https://docs.sqlalchemy.org/en/20/core/engines.html#backend-specific-urls for more details on supported DB URLs."""
254
255
),
255
256
)
256
257
@click .option (
@@ -366,12 +367,13 @@ async def _lifespan(app: FastAPI):
366
367
@click .option (
367
368
"--session_db_url" ,
368
369
help = (
369
- "Optional. The database URL to store the session.\n \n - Use"
370
- " 'agentengine://<agent_engine_resource_id>' to connect to Vertex"
371
- " managed session service.\n \n - Use 'sqlite://<path_to_sqlite_file>'"
372
- " to connect to a SQLite DB.\n \n - See"
373
- " https://docs.sqlalchemy.org/en/20/core/engines.html#backend-specific-urls"
374
- " for more details on supported DB URLs."
370
+ """Optional. The database URL to store the session.
371
+
372
+ - Use 'agentengine://<agent_engine_resource_id>' to connect to Agent Engine sessions.
373
+
374
+ - Use 'sqlite://<path_to_sqlite_file>' to connect to a SQLite DB.
375
+
376
+ - See https://docs.sqlalchemy.org/en/20/core/engines.html#backend-specific-urls for more details on supported DB URLs."""
375
377
),
376
378
)
377
379
@click .option (
@@ -541,6 +543,18 @@ def cli_api_server(
541
543
default = "WARNING" ,
542
544
help = "Optional. Override the default verbosity level." ,
543
545
)
546
+ @click .option (
547
+ "--session_db_url" ,
548
+ help = (
549
+ """Optional. The database URL to store the session.
550
+
551
+ - Use 'agentengine://<agent_engine_resource_id>' to connect to Agent Engine sessions.
552
+
553
+ - Use 'sqlite://<path_to_sqlite_file>' to connect to a SQLite DB.
554
+
555
+ - See https://docs.sqlalchemy.org/en/20/core/engines.html#backend-specific-urls for more details on supported DB URLs."""
556
+ ),
557
+ )
544
558
@click .argument (
545
559
"agent" ,
546
560
type = click .Path (
@@ -558,6 +572,7 @@ def cli_deploy_cloud_run(
558
572
trace_to_cloud : bool ,
559
573
with_ui : bool ,
560
574
verbosity : str ,
575
+ session_db_url : str ,
561
576
):
562
577
"""Deploys an agent to Cloud Run.
563
578
@@ -579,6 +594,7 @@ def cli_deploy_cloud_run(
579
594
trace_to_cloud = trace_to_cloud ,
580
595
with_ui = with_ui ,
581
596
verbosity = verbosity ,
597
+ session_db_url = session_db_url ,
582
598
)
583
599
except Exception as e :
584
600
click .secho (f"Deploy failed: { e } " , fg = "red" , err = True )
0 commit comments