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. */