Skip to content

Commit 60a669c

Browse files
committed
fix: select an agent framework no adapter
1 parent a7bb34a commit 60a669c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

cmd/project/create_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func promptTemplateSelection(cmd *cobra.Command, clients *shared.ClientFactory,
308308
for i, opt := range adapters {
309309
adapterChoices[i] = opt.Title
310310
}
311-
adapterSelection, err := clients.IO.SelectPrompt(ctx, "Select an adapter:", adapterChoices, iostreams.SelectPromptConfig{
311+
adapterSelection, err := clients.IO.SelectPrompt(ctx, "Select an agent framework:", adapterChoices, iostreams.SelectPromptConfig{
312312
Description: func(value string, index int) string {
313313
return adapters[index].Description
314314
},

cmd/project/create_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func TestCreateCommand(t *testing.T) {
137137
},
138138
nil,
139139
)
140-
cm.IO.On("SelectPrompt", mock.Anything, "Select an adapter:", mock.Anything, mock.Anything).
140+
cm.IO.On("SelectPrompt", mock.Anything, "Select an agent framework:", mock.Anything, mock.Anything).
141141
Return(
142142
iostreams.SelectPromptResponse{
143143
Prompt: true,
@@ -186,7 +186,7 @@ func TestCreateCommand(t *testing.T) {
186186
},
187187
nil,
188188
)
189-
cm.IO.On("SelectPrompt", mock.Anything, "Select an adapter:", mock.Anything, mock.Anything).
189+
cm.IO.On("SelectPrompt", mock.Anything, "Select an agent framework:", mock.Anything, mock.Anything).
190190
Return(
191191
iostreams.SelectPromptResponse{
192192
Prompt: true,
@@ -223,7 +223,7 @@ func TestCreateCommand(t *testing.T) {
223223
Return(iostreams.SelectPromptResponse{Prompt: true, Index: 1}, nil) // Select Support Agent
224224
cm.IO.On("SelectPrompt", mock.Anything, "Select a framework:", mock.Anything, mock.Anything).
225225
Return(iostreams.SelectPromptResponse{Prompt: true, Index: 1}, nil) // Select Bolt for Python
226-
cm.IO.On("SelectPrompt", mock.Anything, "Select an adapter:", mock.Anything, mock.Anything).
226+
cm.IO.On("SelectPrompt", mock.Anything, "Select an agent framework:", mock.Anything, mock.Anything).
227227
Return(iostreams.SelectPromptResponse{Prompt: true, Index: 2}, nil) // Select Pydantic AI
228228
createClientMock = new(CreateClientMock)
229229
createClientMock.On("Create", mock.Anything, mock.Anything, mock.Anything).Return("", nil)
@@ -334,7 +334,7 @@ func TestCreateCommand(t *testing.T) {
334334
},
335335
nil,
336336
)
337-
cm.IO.On("SelectPrompt", mock.Anything, "Select an adapter:", mock.Anything, mock.Anything).
337+
cm.IO.On("SelectPrompt", mock.Anything, "Select an agent framework:", mock.Anything, mock.Anything).
338338
Return(
339339
iostreams.SelectPromptResponse{
340340
Prompt: true,
@@ -415,7 +415,7 @@ func TestCreateCommand(t *testing.T) {
415415
},
416416
nil,
417417
)
418-
cm.IO.On("SelectPrompt", mock.Anything, "Select an adapter:", mock.Anything, mock.Anything).
418+
cm.IO.On("SelectPrompt", mock.Anything, "Select an agent framework:", mock.Anything, mock.Anything).
419419
Return(
420420
iostreams.SelectPromptResponse{
421421
Prompt: true,

0 commit comments

Comments
 (0)