File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,8 @@ def to_agent_engine(
218
218
region : str ,
219
219
staging_bucket : str ,
220
220
trace_to_cloud : bool ,
221
+ display_name : Optional [str ] = None ,
222
+ description : Optional [str ] = None ,
221
223
requirements_file : Optional [str ] = None ,
222
224
env_file : Optional [str ] = None ,
223
225
):
@@ -342,6 +344,8 @@ def to_agent_engine(
342
344
agent_engines .create (
343
345
agent_engine = agent_engine ,
344
346
requirements = requirements_file ,
347
+ display_name = display_name ,
348
+ description = description ,
345
349
env_vars = env_vars ,
346
350
extra_packages = [temp_folder ],
347
351
)
Original file line number Diff line number Diff line change @@ -793,6 +793,20 @@ def cli_deploy_cloud_run(
793
793
default = False ,
794
794
help = "Optional. Whether to enable Cloud Trace for Agent Engine." ,
795
795
)
796
+ @click .option (
797
+ "--display_name" ,
798
+ type = str ,
799
+ show_default = True ,
800
+ default = "" ,
801
+ help = "Optional. Display name of the agent in Agent Engine." ,
802
+ )
803
+ @click .option (
804
+ "--description" ,
805
+ type = str ,
806
+ show_default = True ,
807
+ default = "" ,
808
+ help = "Optional. Description of the agent in Agent Engine." ,
809
+ )
796
810
@click .option (
797
811
"--adk_app" ,
798
812
type = str ,
@@ -847,6 +861,8 @@ def cli_deploy_agent_engine(
847
861
region : str ,
848
862
staging_bucket : str ,
849
863
trace_to_cloud : bool ,
864
+ display_name : str ,
865
+ description : str ,
850
866
adk_app : str ,
851
867
temp_folder : str ,
852
868
env_file : str ,
@@ -859,7 +875,7 @@ def cli_deploy_agent_engine(
859
875
Example:
860
876
861
877
adk deploy agent_engine --project=[project] --region=[region]
862
- --staging_bucket=[staging_bucket] path/to/my_agent
878
+ --staging_bucket=[staging_bucket] --display_name=[app_name] path/to/my_agent
863
879
"""
864
880
try :
865
881
cli_deploy .to_agent_engine (
@@ -868,6 +884,8 @@ def cli_deploy_agent_engine(
868
884
region = region ,
869
885
staging_bucket = staging_bucket ,
870
886
trace_to_cloud = trace_to_cloud ,
887
+ display_name = display_name ,
888
+ description = description ,
871
889
adk_app = adk_app ,
872
890
temp_folder = temp_folder ,
873
891
env_file = env_file ,
You can’t perform that action at this time.
0 commit comments