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:
mkorwel
2026-02-19 13:56:49 -06:00
parent 1a8d77329e
commit 31ebfb496a
17 changed files with 509 additions and 5 deletions
+4
View File
@@ -962,6 +962,10 @@ export class TestRig {
);
}
readTelemetryLogs(): any[] {
return this._readAndParseTelemetryLog();
}
async waitForToolCall(
toolName: string,
timeout?: number,