Skip to content

kagent run silently fails if name contains unsupported characters (e.g. -) #1038

@peterj

Description

@peterj
  1. kagent init adk python hello-agent
  2. kagent run .

Run command hangs because of this error:

ValidationError: 1 validation error for LlmAgent
hello-agent-1  | name
hello-agent-1  |   Value error, Found invalid agent name: `hello-agent_agent`. Agent name must be
hello-agent-1  | a valid identifier. It should start with a letter (a-z, A-Z) or an underscore 
hello-agent-1  | (_), and can only contain letters, digits (0-9), and underscores. 

We shoul fail in the init command if the name contains unsupported characters

Metadata

Metadata

Labels

CLIIssue related to the CLIhelp wantedExtra attention is needed

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions