From d96af8bacd84d065310dddb49abb7561c4a7b059 Mon Sep 17 00:00:00 2001 From: jerop Date: Wed, 11 Jun 2025 16:50:24 +0000 Subject: refactor(telemetry): pass config object to telemetry functions This commit refactors the telemetry system to pass a object to various logging and metrics functions. This change centralizes configuration management within the telemetry system, making it more modular and easier to maintain. The constructor and various tool execution functions have been updated to accept the object, which is then passed down to the telemetry functions. This eliminates the need to pass individual configuration values, such as , through multiple layers of the application. --- packages/core/src/utils/nextSpeakerChecker.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/core/src/utils') diff --git a/packages/core/src/utils/nextSpeakerChecker.test.ts b/packages/core/src/utils/nextSpeakerChecker.test.ts index a19045d1..83ce97fd 100644 --- a/packages/core/src/utils/nextSpeakerChecker.test.ts +++ b/packages/core/src/utils/nextSpeakerChecker.test.ts @@ -69,9 +69,9 @@ describe('checkNextSpeaker', () => { // GeminiChat will receive the mocked instances via the mocked GoogleGenAI constructor chatInstance = new GeminiChat( + mockConfigInstance, mockModelsInstance, // This is the instance returned by mockGoogleGenAIInstance.getGenerativeModel 'gemini-pro', // model name - 'test-session-id', {}, [], // initial history ); -- cgit v1.2.3