Skip to content

Commit 630ede5

Browse files
authored
Update property type (#16757)
1 parent ce5d9be commit 630ede5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/standalone/chat/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export abstract class BaseTool<T extends IBaseToolParams> implements LanguageMod
6565
throw ex;
6666
} finally {
6767
const isCancelled = token.isCancellationRequested || (error ? isCancellationError(error, true) : false);
68-
const failed = !!error || isCancelled;
68+
const failed = !!error || isCancelled ? 'true' : 'false';
6969
const failureCategory = isCancelled
7070
? 'cancelled'
7171
: error

src/telemetry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4414,7 +4414,7 @@ export class IEventNamePropertyMapping {
44144414
* Whether there was a failure.
44154415
* Common to most of the events.
44164416
*/
4417-
failed: boolean;
4417+
failed: 'true' | 'false';
44184418
/**
44194419
* A reason that we generate (e.g. kerneldied, noipykernel, etc), more like a category of the error.
44204420
* Common to most of the events.

0 commit comments

Comments
 (0)