Files
gemini-cli/integration-tests/tool-preselection.responses
T
mkorwel 31ebfb496a 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
2026-02-19 14:27:18 -06:00

4 lines
642 B
Plaintext

{"method":"generateContent","response":{"candidates":[{"content":{"parts":[{"text":"{\"relevant_tools\": [\"list_directory\"]}"}]}}],"usageMetadata":{"promptTokenCount":100,"totalTokenCount":110}}}
{"method":"generateContentStream","response":[{"candidates":[{"content":{"parts":[{"functionCall":{"name":"list_directory","args":{"dir_path":"."}}}]},"index":0}],"usageMetadata":{"promptTokenCount":100,"totalTokenCount":110}}]}
{"method":"generateContentStream","response":[{"candidates":[{"finishReason":"STOP","content":{"parts":[{"text":"I listed the files."}]},"index":0}],"usageMetadata":{"promptTokenCount":200,"totalTokenCount":210}}]}