Skip to content

adk deploy cloud_run fixes the Python version at 3.11, but some sample agents depend on Python 3.12. #2219

@mstyer-google

Description

@mstyer-google

Describe the bug
The data science agent from adk-samples depends on Python 3.12, but adk deploy cloud_run uses a hard-coded container template that uses Python 3.11. This leads to errors when the user runs the data science agent in a Cloud Run deployment. The specific error generated is a syntax error that results from changes in f-string parsing between 3.11 and 3.12.

To Reproduce
Steps to reproduce the behavior:

  1. Install current versions of adk-python and adk-samples.
  2. Run adk deploy cloud_run for the data-science agent.
  3. Navigate to the web interface for the deployed agent.
  4. Type anything in the web interface.
  5. Get an error: SyntaxError: unterminated string literal (detected at line 48)

Expected behavior
Data science agent responds correctly.

Sample correct interaction:
User: Hello, what can you do for me?
Agent: Hello! I'm a data science and data analytics multi-agent system. I can help you with:

Querying databases: I can retrieve data from the forecasting_sticker_sales.test and forecasting_sticker_sales.train tables based on your questions.
Data analysis: I can perform various data science tasks and Python analysis on the data.
BigQuery ML: If you specifically ask for it, I can route your request to a BigQuery ML agent for tasks like model training, evaluation, or prediction.
Just let me know what you'd like to do with your data!

Metadata

Metadata

Assignees

Labels

bot triaged[Bot] This issue is triaged by ADK bottools[Component] This issue is related to tools

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions