mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-22 17:53:04 -07:00
31ebfb496a
- 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
4 lines
642 B
Plaintext
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}}]}
|