Deployment fails to resolve the `litellm` package version and fails
What happened?
Deployment to Agent Runtime fails
Steps to Reproduce
uvx google-agents-cli setup- Take an existing agent and enhance it:
uvx google-agents-cli scaffold enhance -ior create a fresh agentuvx google-agents-cli scaffold create my-awesome-agent -i - Test it in the playground making sure it works:
agents-cli install && agents-cli playground - Deploy the agent to Agent Runtime:
uvx google-agents-cli deploy --no-confirm-project
What did you expect to happen?
Deploy the agent successfully and see smth like this:
Using project root directory: /home/admin_/my-awesome-agent
📦 Auto-generated requirements: app/app_utils/.requirements.txt
╔═══════════════════════════════════════════════════════════╗
║ ║
║ 🤖 DEPLOYING AGENT TO AGENT RUNTIME 🤖 ║
║ ║
Using project root directory: /home/admin_/my-awesome-agent
📦 Auto-generated requirements: app/app_utils/.requirements.txt
╔═══════════════════════════════════════════════════════════╗
║ ║
║ 🤖 DEPLOYING AGENT TO AGENT RUNTIME 🤖 ║
║ ║
╚═══════════════════════════════════════════════════════════╝
📋 Deployment Parameters:
Project: learning-agentspace
Location: us-east1
Display Name: my-awesome-agent
Min Instances: 1
Max Instances: 10
CPU: 4
Memory: 8Gi
Container Concurrency: 9
🌍 Environment Variables:
AGENT_VERSION: 0.1.0
GOOGLE_CLOUD_AGENT_ENGINE_ENABLE_TELEMETRY: true
GOOGLE_CLOUD_REGION: us-east1
NUM_WORKERS: 1
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT: true
🚀 Creating agent: my-awesome-agent (this can take 5-10 minutes)...
INFO:vertexai_genai.agentengines:Creating in-memory tarfile of source_packages
INFO:vertexai_genai.agentengines:Using agent framework: google-adk
Operation: projects/903290458825/locations/us-east1/reasoningEngines/4823812597750956032/operations/7451432426477191168
If this command is interrupted, run 'google-agents deploy --status' to check progress.
✅ Deployment successful!
Agent Runtime ID: projects/903290458825/locations/us-east1/reasoningEngines/4823812597750956032
Service Account: service-903290458825@gcp-sa-aiplatform-re.iam.gserviceaccount.com
📊 Open Console Playground: https://console.cloud.google.com/vertex-ai/agents/agent-engines/locations/us-east1/agent-engines/4823812597750956032/playground?project=learning-agentspace
Client information
Client Information
CLI version: 0.2.0 CLI install path: /Users/ldap/.local/share/uv/tools/google-agents-cli/lib/python3.14/site-packages/google/agents/cli OS info: macOS-15.7.7-arm64-arm-64bit-Mach-O Installed skills: none
Project root: /Users/kashnitsky/Downloads/ge-hackathons-tech-track Project name: ge-hackathons-tech-track Deployment target: agent_runtime Agent directory: google_search_agent Region: us-east1
Command Output / Logs
Could not find a version that satisfies the requirement litellm==1.85.7
Anything else we need to know?
No response
Turns out this is due to pinned version of litellm==1.85.7 brought by google-cloud-aiplatform==1.158.0:
Could not find a version that satisfies the requirement litellm==1.85.7
The requirements file is auto-generated (can't seem to skip this step btw) and that's where litellm==1.85.7 is put:
📦 Auto-generated requirements: agent_dir/app_utils/.requirements.txt
I see the --requirements_file flag in src/google/agents/cli/deploy/agent_runtime.py but not in src/google/agents/cli/deploy/cmd_deploy.py
Maybe a workaround might be adding the --requirements_file to cmd_deploy.py ?
Somehow got it fixed by pinning google-cloud-aiplatform==1.156.0 which didn't bring in the litellm dependency.
But still, deployment fails for a fresh agent
uvx google-agents-cli setupuvx google-agents-cli scaffold create my-awesome-agent -icd my-awesome-agentuvx google-agents-cli deploy -i
Auto-generated requirements: app/app_utils/.requirements.txt
╔═══════════════════════════════════════════════════════════╗
║ ║
║ 🤖 DEPLOYING AGENT TO VERTEX AI AGENT ENGINE 🤖 ║
║ ║
╚═══════════════════════════════════════════════════════════╝
the file app/app_utils/.requirements.txt does contain litellm==1.85.4 and deployment fails
Hi @Yorko !
We've significantly refactored how we handle deploying agents, it's now container-based. Can you please verify if you are still encountering this issue in the latest version of agents-cli?
If so, can you include the full console output in your comment? (Sanitized to remove any personal or sensitive information, please). The fuller context will make it easier to repro and debug.
Closing since this is probably obsolete now as mentioned above, please feel free to reopen if still an issue. Thanks!
hi @sushicw, sorry for the delay, the below works indeed in Cloud Shell.
uv tool upgrade google-agents-cli
agents-cli setup
agents-cli --version # shows "agents-cli, version 1.1.0"
agents-cli scaffold create my-awesome-agent -i
cd my-awesome-agent && agents-cli install && agents-cli playground # works fine
agents-cli deploy --no-confirm-project