context window support

This commit is contained in:
shivammittal274
2025-12-05 23:24:34 +05:30
parent 87c0dea49a
commit c7643e920d

View File

@@ -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', {