You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/src/codewhispererChat/controllers/chat/controller.ts
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -714,12 +714,17 @@ export class ChatController {
714
714
consttoolUseError=toolUseWithError.error
715
715
consttoolResults: ToolResult[]=[]
716
716
717
+
letresponse=''
717
718
if(toolUseError){
718
719
toolResults.push({
719
720
content: [{text: toolUseError.message}],
720
721
toolUseId: toolUse.toolUseId,
721
722
status: ToolResultStatus.ERROR,
722
723
})
724
+
if(toolUseErrorinstanceofSyntaxError){
725
+
response=
726
+
"Your toolUse input isn't valid. Please check the syntax and make sure the input is complete. If the input is large, break it down into multiple tool uses with smaller input."
0 commit comments