# Conflicts: # core/index.d.ts # core/tools/definitions/codebaseTool.ts # core/tools/definitions/createNewFile.ts # core/tools/definitions/createRuleBlock.ts # core/tools/definitions/editFile.ts # core/tools/definitions/fetchUrlContent.ts # core/tools/definitions/globSearch.ts # core/tools/definitions/grepSearch.ts # core/tools/definitions/ls.ts # core/tools/definitions/readCurrentlyOpenFile.ts # core/tools/definitions/readFile.ts # core/tools/definitions/requestRule.ts # core/tools/definitions/runTerminalCommand.ts # core/tools/definitions/searchAndReplaceInFile.ts # core/tools/definitions/searchWeb.ts # core/tools/definitions/viewDiff.ts # core/tools/definitions/viewRepoMap.ts # core/tools/definitions/viewSubdirectory.ts
29 lines
981 B
TypeScript
29 lines
981 B
TypeScript
import { Tool } from "../..";
|
|
|
|
import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn";
|
|
import { createSystemMessageExampleCall } from "../systemMessageTools/buildToolsSystemMessage";
|
|
|
|
export const viewRepoMapTool: Tool = {
|
|
type: "function",
|
|
displayTitle: "View Repo Map",
|
|
wouldLikeTo: "view the repository map",
|
|
isCurrently: "getting the repository map",
|
|
hasAlready: "viewed the repository map",
|
|
readonly: true,
|
|
isInstant: true,
|
|
group: BUILT_IN_GROUP_NAME,
|
|
function: {
|
|
name: BuiltInToolNames.ViewRepoMap,
|
|
description: "View the repository map",
|
|
parameters: {
|
|
type: "object",
|
|
properties: {},
|
|
},
|
|
},
|
|
defaultToolPolicy: "allowedWithPermission",
|
|
systemMessageDescription: createSystemMessageExampleCall(
|
|
BuiltInToolNames.ViewRepoMap,
|
|
`To view the repository map, use the ${BuiltInToolNames.ViewRepoMap} tool. This will provide a visual representation of the project's structure and organization.`,
|
|
[],
|
|
),
|
|
};
|