File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,11 @@ def ask_design() -> dict:
139139 # ]),
140140 ])
141141
142- if not is_snake_case ( agent ['name' ]) :
143- print (term_color ("Error: Agent name must be snake case - Try again" , 'red' ))
142+ if not agent ['name' ] or agent [ 'name' ] == '' :
143+ print (term_color ("Error: Agent name is required - Try again" , 'red' ))
144144 agent_incomplete = True
145+ elif not is_snake_case (agent ['name' ]):
146+ print (term_color ("Error: Agent name must be snake case - Try again" , 'red' ))
145147 else :
146148 agent_incomplete = False
147149
@@ -176,9 +178,10 @@ def ask_design() -> dict:
176178 choices = [a ['name' ] for a in agents ], ),
177179 ])
178180
179- if not is_snake_case (task ['name' ]):
181+ if not task ['name' ] or task ['name' ] == '' :
182+ print (term_color ("Error: Task name is required - Try again" , 'red' ))
183+ elif not is_snake_case (task ['name' ]):
180184 print (term_color ("Error: Task name must be snake case - Try again" , 'red' ))
181- task_incomplete = True
182185 else :
183186 task_incomplete = False
184187
You can’t perform that action at this time.
0 commit comments