continue-custom/core/tools/definitions/runTerminalCommand.ts
2024-11-22 23:00:14 -08:00

24 lines
627 B
TypeScript

import { Tool } from "../..";
import { BuiltInToolNames } from "../builtIn";
export const runTerminalCommandTool: Tool = {
type: "function",
displayTitle: "Run Terminal Command",
wouldLikeTo: "run a terminal command",
function: {
name: BuiltInToolNames.RunTerminalCommand,
description: "Run a terminal command in the current directory",
parameters: {
type: "object",
required: ["command"],
properties: {
command: {
type: "string",
description:
"The command to run. This will be passed directly into the shell.",
},
},
},
},
};