continue-custom/core/tools/definitions/exactSearch.ts
2024-11-29 16:09:55 -08:00

24 lines
674 B
TypeScript

import { Tool } from "../..";
import { BuiltInToolNames } from "../builtIn";
export const exactSearchTool: Tool = {
type: "function",
displayTitle: "Exact Search",
wouldLikeTo: 'search for "{{{ query }}}" in the repository',
readonly: true,
function: {
name: BuiltInToolNames.ExactSearch,
description: "Perform an exact search over the repository using ripgrep.",
parameters: {
type: "object",
required: ["query"],
properties: {
query: {
type: "string",
description:
"The search query to use. Must be a valid ripgrep regex expression, escaped where needed",
},
},
},
},
};