diff options
Diffstat (limited to 'packages/core/src/telemetry/loggers.test.ts')
| -rw-r--r-- | packages/core/src/telemetry/loggers.test.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/core/src/telemetry/loggers.test.ts b/packages/core/src/telemetry/loggers.test.ts index 3d8116cc..14de83a9 100644 --- a/packages/core/src/telemetry/loggers.test.ts +++ b/packages/core/src/telemetry/loggers.test.ts @@ -5,6 +5,7 @@ */ import { + AnyToolInvocation, AuthType, CompletedToolCall, ContentGeneratorConfig, @@ -432,6 +433,7 @@ describe('loggers', () => { }); it('should log a tool call with all fields', () => { + const tool = new EditTool(mockConfig); const call: CompletedToolCall = { status: 'success', request: { @@ -451,7 +453,8 @@ describe('loggers', () => { error: undefined, errorType: undefined, }, - tool: new EditTool(mockConfig), + tool, + invocation: {} as AnyToolInvocation, durationMs: 100, outcome: ToolConfirmationOutcome.ProceedOnce, }; @@ -581,6 +584,7 @@ describe('loggers', () => { }, outcome: ToolConfirmationOutcome.ModifyWithEditor, tool: new EditTool(mockConfig), + invocation: {} as AnyToolInvocation, durationMs: 100, }; const event = new ToolCallEvent(call); @@ -645,6 +649,7 @@ describe('loggers', () => { errorType: undefined, }, tool: new EditTool(mockConfig), + invocation: {} as AnyToolInvocation, durationMs: 100, }; const event = new ToolCallEvent(call); |
