From 7353bda8ff3da054a9f5abe2dd5951b82951b147 Mon Sep 17 00:00:00 2001 From: Tommaso Sciortino Date: Mon, 15 Sep 2025 11:17:07 -0700 Subject: [PATCH] Remove unused method. (#8486) --- packages/core/src/core/geminiChat.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/packages/core/src/core/geminiChat.ts b/packages/core/src/core/geminiChat.ts index 38a7485295..375588024a 100644 --- a/packages/core/src/core/geminiChat.ts +++ b/packages/core/src/core/geminiChat.ts @@ -25,7 +25,6 @@ import { } from '../config/models.js'; import { hasCycleInSchema } from '../tools/tools.js'; import type { StructuredError } from './turn.js'; -import type { CompletedToolCall } from './coreToolScheduler.js'; import { logContentRetry, logContentRetryFailure, @@ -661,33 +660,6 @@ export class GeminiChat { return this.chatRecordingService; } - /** - * Records completed tool calls with full metadata. - * This is called by external components when tool calls complete, before sending responses to Gemini. - */ - recordCompletedToolCalls( - model: string, - toolCalls: CompletedToolCall[], - ): void { - const toolCallRecords = toolCalls.map((call) => { - const resultDisplayRaw = call.response?.resultDisplay; - const resultDisplay = - typeof resultDisplayRaw === 'string' ? resultDisplayRaw : undefined; - - return { - id: call.request.callId, - name: call.request.name, - args: call.request.args, - result: call.response?.responseParts || null, - status: call.status as 'error' | 'success' | 'cancelled', - timestamp: new Date().toISOString(), - resultDisplay, - }; - }); - - this.chatRecordingService.recordToolCalls(model, toolCallRecords); - } - /** * Extracts and records thought from thought content. */