Elffuss BraidHub

kikocis/continue public

4940c71be2bf · 981 BRawPermalink
1import { Tool } from "../..";
2
3import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn";
4import { createSystemMessageExampleCall } from "../systemMessageTools/buildToolsSystemMessage";
5
6export const viewRepoMapTool: Tool = {
7 type: "function",
8 displayTitle: "View Repo Map",
9 wouldLikeTo: "view the repository map",
10 isCurrently: "getting the repository map",
11 hasAlready: "viewed the repository map",
12 readonly: true,
13 isInstant: true,
14 group: BUILT_IN_GROUP_NAME,
15 function: {
16 name: BuiltInToolNames.ViewRepoMap,
17 description: "View the repository map",
18 parameters: {
19 type: "object",
20 properties: {},
21 },
22 },
23 defaultToolPolicy: "allowedWithPermission",
24 systemMessageDescription: createSystemMessageExampleCall(
25 BuiltInToolNames.ViewRepoMap,
26 `To view the repository map, use the ${BuiltInToolNames.ViewRepoMap} tool. This will provide a visual representation of the project's structure and organization.`,
27 [],
28 ),
29};