mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 22:51:00 -07:00
Remove unused method. (#8486)
This commit is contained in:
committed by
GitHub
parent
e28a043f3d
commit
7353bda8ff
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user