diff options
| author | jerop <[email protected]> | 2025-06-11 16:50:24 +0000 |
|---|---|---|
| committer | Jerop Kipruto <[email protected]> | 2025-06-11 13:24:41 -0400 |
| commit | d96af8bacd84d065310dddb49abb7561c4a7b059 (patch) | |
| tree | 7315ef5f5475ad38f1435aaea6864ee362fb2143 /packages/core/src/utils/nextSpeakerChecker.test.ts | |
| parent | 9c5b5ff82337cccdae59c0f8c11cf47793e7b37d (diff) | |
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.
Diffstat (limited to 'packages/core/src/utils/nextSpeakerChecker.test.ts')
| -rw-r--r-- | packages/core/src/utils/nextSpeakerChecker.test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |
