To reproduce, run:
adk deploy agent_engine <options> agent-folder-name.
The generated code will fail on the following line:
...
from agent-folder-name.agent import root_agent
..
with "Deploy failed: Failed to set up agent engine <vertexai.agent_engines._agent_engines.ModuleAgent object at 0x1310dbad0>: invalid syntax (agent_engine_app.py, line 13)".
It's pretty hard to debug, at the very least would be good to add a validation step and print a descriptive reason for the failure.
To reproduce, run:
adk deploy agent_engine <options> agent-folder-name.The generated code will fail on the following line:
with "Deploy failed: Failed to set up agent engine <vertexai.agent_engines._agent_engines.ModuleAgent object at 0x1310dbad0>: invalid syntax (agent_engine_app.py, line 13)".
It's pretty hard to debug, at the very least would be good to add a validation step and print a descriptive reason for the failure.