-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
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:
- Install current versions of
adk-python
andadk-samples
. - Run
adk deploy cloud_run
for thedata-science
agent. - Navigate to the web interface for the deployed agent.
- Type anything in the web interface.
- 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!