Remove unused method. (#8486)

This commit is contained in:
Tommaso Sciortino
2025-09-15 11:17:07 -07:00
committed by GitHub
parent e28a043f3d
commit 7353bda8ff

View File

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