in src/cli/utils/template.py [0:0]
def prompt_deployment_target(agent_name: str) -> str:
"""Ask user to select a deployment target for the agent."""
targets = get_deployment_targets(agent_name)
# Define deployment target friendly names and descriptions
TARGET_INFO = {
"agent_engine": {
"display_name": "Vertex AI Agent Engine",
"description": "Vertex AI Managed platform for scalable agent deployments",
},
"cloud_run": {
"display_name": "Cloud Run",
"description": "GCP Serverless container execution",
},
}
if not targets:
return ""
console = Console()
console.print("\n> Please select a deployment target:")
for idx, target in enumerate(targets, 1):
info = TARGET_INFO.get(target, {})
display_name = info.get("display_name", target)
description = info.get("description", "")
console.print(f"{idx}. [bold]{display_name}[/] - [dim]{description}[/]")
from rich.prompt import IntPrompt
choice = IntPrompt.ask(
"\nEnter the number of your deployment target choice",
default=1,
show_default=True,
)
return targets[choice - 1]