mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-16 21:10:40 -07:00
feat(core): implement tool preselection to reduce context size
- Created ToolPreselectionService using the classifier model to select only relevant tools for a given prompt. - Integrated pre-selection into LocalAgentExecutor and GeminiClient to automatically filter the tool registry. - Added `general.toolPreselection` toggle in configuration (enabled by default). - Added comprehensive unit tests and an E2E scenario confirming accurate tool reduction without loss of function. - Fixes #17113
This commit is contained in:
@@ -962,6 +962,10 @@ export class TestRig {
|
||||
);
|
||||
}
|
||||
|
||||
readTelemetryLogs(): any[] {
|
||||
return this._readAndParseTelemetryLog();
|
||||
}
|
||||
|
||||
async waitForToolCall(
|
||||
toolName: string,
|
||||
timeout?: number,
|
||||
|
||||
Reference in New Issue
Block a user