mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
Revert coreTools.ts to main branch version
This commit is contained in:
@@ -88,18 +88,7 @@ export const RIP_GREP_DEFINITION: ToolDefinition = {
|
|||||||
get base() {
|
get base() {
|
||||||
return DEFAULT_LEGACY_SET.grep_search_ripgrep;
|
return DEFAULT_LEGACY_SET.grep_search_ripgrep;
|
||||||
},
|
},
|
||||||
overrides: (modelId: string) => {
|
overrides: (modelId) => getToolSet(modelId).grep_search_ripgrep,
|
||||||
if (
|
|
||||||
modelId.includes('gemini-3-pro-preview') ||
|
|
||||||
modelId.includes('gemini-3-flash-preview')
|
|
||||||
) {
|
|
||||||
return {
|
|
||||||
description:
|
|
||||||
'Searches for a regular expression pattern within file contents. This tool is FAST and optimized, powered by ripgrep. PREFERRED over standard `run_shell_command("grep ...")` due to better performance and automatic output limiting (max 20k matches).',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return undefined;
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const WEB_SEARCH_DEFINITION: ToolDefinition = {
|
export const WEB_SEARCH_DEFINITION: ToolDefinition = {
|
||||||
|
|||||||
Reference in New Issue
Block a user