Skip to content

"adk deploy agent_engine" fails if the agent folder name contains dashes. #2902

@slilichenko

Description

@slilichenko

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.

Metadata

Metadata

Assignees

Labels

agent engine[Component] This issue is related to Vertex AI Agent Enginegood first issue[Community] This issue is good for newcomers to participate

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions