Skip to content

Commit a804eeb

Browse files
committed
Adding parameter numberOfCodeBlocks for chatAddMessageEvent
1 parent ee9f69c commit a804eeb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/core/src/codewhisperer/client/user-service-2.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@
344344
"timeBetweenChunks": { "shape": "TimeBetweenChunks" },
345345
"fullResponselatency": { "shape": "Double" },
346346
"requestLength": { "shape": "Integer" },
347-
"responseLength": { "shape": "Integer" }
347+
"responseLength": { "shape": "Integer" },
348+
"numberOfCodeBlocks": { "shape": "Integer" }
348349
}
349350
},
350351
"ChatHistory": {

packages/core/src/codewhispererChat/controllers/chat/telemetryHelper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ export class CWCTelemetryHelper {
353353
fullResponselatency: event.cwsprChatFullResponseLatency,
354354
requestLength: event.cwsprChatRequestLength,
355355
responseLength: event.cwsprChatResponseLength,
356+
numberOfCodeBlocks: event.cwsprChatResponseCodeSnippetCount,
356357
},
357358
},
358359
})

0 commit comments

Comments
 (0)