@@ -245,12 +245,13 @@ def cli_eval(
245245@click .option (
246246 "--session_db_url" ,
247247 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."""
254255 ),
255256)
256257@click .option (
@@ -366,12 +367,13 @@ async def _lifespan(app: FastAPI):
366367@click .option (
367368 "--session_db_url" ,
368369 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."""
375377 ),
376378)
377379@click .option (
@@ -541,6 +543,18 @@ def cli_api_server(
541543 default = "WARNING" ,
542544 help = "Optional. Override the default verbosity level." ,
543545)
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+ )
544558@click .argument (
545559 "agent" ,
546560 type = click .Path (
@@ -558,6 +572,7 @@ def cli_deploy_cloud_run(
558572 trace_to_cloud : bool ,
559573 with_ui : bool ,
560574 verbosity : str ,
575+ session_db_url : str ,
561576):
562577 """Deploys an agent to Cloud Run.
563578
@@ -579,6 +594,7 @@ def cli_deploy_cloud_run(
579594 trace_to_cloud = trace_to_cloud ,
580595 with_ui = with_ui ,
581596 verbosity = verbosity ,
597+ session_db_url = session_db_url ,
582598 )
583599 except Exception as e :
584600 click .secho (f"Deploy failed: { e } " , fg = "red" , err = True )
0 commit comments