From c7643e920da1aecbdfd64e886ad6e84126ae0610 Mon Sep 17 00:00:00 2001 From: shivammittal274 Date: Fri, 5 Dec 2025 23:24:34 +0530 Subject: [PATCH] context window support --- packages/agent/src/agent/GeminiAgent.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/agent/src/agent/GeminiAgent.ts b/packages/agent/src/agent/GeminiAgent.ts index 88582b84..9bb2f5c2 100644 --- a/packages/agent/src/agent/GeminiAgent.ts +++ b/packages/agent/src/agent/GeminiAgent.ts @@ -152,13 +152,7 @@ export class GeminiAgent { while (true) { turnCount++; - const historyLength = this.client.getHistory().length; - const lastPromptTokens = this.client.getChat?.()?.getLastPromptTokenCount?.() ?? 'N/A'; - logger.debug(`Turn ${turnCount}`, { - conversationId: this.conversationId, - historyLength, - lastPromptTokens, - }); + logger.debug(`Turn ${turnCount}`, { conversationId: this.conversationId }); if (turnCount > MAX_TURNS) { logger.warn('Max turns exceeded', {