Skip to content

Commit 9fd7b9b

Browse files
authored
Rename llm tools (#25078)
1 parent d06eb18 commit 9fd7b9b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@
14651465
],
14661466
"languageModelTools": [
14671467
{
1468-
"name": "python_environment",
1468+
"name": "get_python_environment",
14691469
"displayName": "Get Python Environment Information",
14701470
"userDescription": "%python.languageModelTools.python_environment.userDescription%",
14711471
"modelDescription": "Provides details about the Python environment for a specified file or workspace, including environment type, Python version, run command, and installed packages with their versions. Use this tool to determine the correct command for executing Python code in this workspace.",
@@ -1490,7 +1490,7 @@
14901490
"when": "!pythonEnvExtensionInstalled"
14911491
},
14921492
{
1493-
"name": "python_install_package",
1493+
"name": "install_python_package",
14941494
"displayName": "Install Python Package",
14951495
"userDescription": "%python.languageModelTools.python_install_package.userDescription%",
14961496
"modelDescription": "Installs Python packages in the given workspace. Use this tool to install packages in the user's chosen environment.",

src/client/chat/getPythonEnvTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class GetEnvironmentInfoTool implements LanguageModelTool<IResourceRefere
4242
private readonly terminalExecutionService: TerminalCodeExecutionProvider;
4343
private readonly pythonExecFactory: IPythonExecutionFactory;
4444
private readonly processServiceFactory: IProcessServiceFactory;
45-
public static readonly toolName = 'python_environment';
45+
public static readonly toolName = 'get_python_environment';
4646
constructor(
4747
private readonly api: PythonExtension['environments'],
4848
private readonly serviceContainer: IServiceContainer,

src/client/chat/installPackagesTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface IInstallPackageArgs {
2727
}
2828

2929
export class InstallPackagesTool implements LanguageModelTool<IInstallPackageArgs> {
30-
public static readonly toolName = 'python_install_package';
30+
public static readonly toolName = 'install_python_package';
3131
constructor(
3232
private readonly api: PythonExtension['environments'],
3333
private readonly serviceContainer: IServiceContainer,

0 commit comments

Comments
 (0)