Skip to content

Commit ad7c495

Browse files
authored
Merge pull request microsoft#258632 from microsoft/tyriar/258628
Polish terminal and task tools
2 parents 73f0894 + f356b26 commit ad7c495

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalTool.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ interface IStoredTerminalAssociation {
5050
export const RunInTerminalToolData: IToolData = {
5151
id: 'run_in_terminal',
5252
toolReferenceName: 'runInTerminal',
53-
canBeReferencedInPrompt: true,
5453
displayName: localize('runInTerminalTool.displayName', 'Run in Terminal'),
5554
modelDescription: [
5655
'This tool allows you to execute shell commands in a persistent terminal session, preserving environment variables, working directory, and other context across multiple commands.',

src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/createAndRunTaskTool.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ export class CreateAndRunTaskTool implements IToolImpl {
188188

189189
export const CreateAndRunTaskToolData: IToolData = {
190190
id: 'create_and_run_task',
191-
toolReferenceName: 'createAndRunTask2',
192-
canBeReferencedInPrompt: true,
191+
toolReferenceName: 'createAndRunTask',
193192
displayName: localize('createAndRunTask.displayName', 'Create and run Task'),
194193
modelDescription: localize('createAndRunTask.modelDescription', 'For a workspace, this tool will create a task based on the package.json, README.md, and project structure so that the project can be built and run.'),
195194
userDescription: localize('createAndRunTask.userDescription', "Create and run a task in the workspace"),

src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/getTaskOutputTool.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export const GetTaskOutputToolData: IToolData = {
2020
displayName: localize('getTaskOutputTool.displayName', 'Get Task Output'),
2121
modelDescription: 'Get the output of a task',
2222
source: ToolDataSource.Internal,
23-
canBeReferencedInPrompt: true,
2423
inputSchema: {
2524
type: 'object',
2625
properties: {

src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/runTaskTool.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ export class RunTaskTool implements IToolImpl {
145145

146146
export const RunTaskToolData: IToolData = {
147147
id: 'run_task',
148-
toolReferenceName: 'runTask2',
149-
canBeReferencedInPrompt: true,
148+
toolReferenceName: 'runTask',
150149
displayName: localize('runInTerminalTool.displayName', 'Run Task'),
151150
modelDescription: 'Runs a VS Code task.\n\n- If you see that an appropriate task exists for building or running code, prefer to use this tool to run the task instead of using the run_in_terminal tool.\n- Make sure that any appropriate build or watch task is running before trying to run tests or execute code.\n- If the user asks to run a task, use this tool to do so.',
152151
userDescription: localize('runInTerminalTool.userDescription', 'Tool for running tasks in the workspace'),

0 commit comments

Comments
 (0)