Skip to content

Rename llm tools #25078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@
],
"languageModelTools": [
{
"name": "python_environment",
"name": "get_python_environment",
"displayName": "Get Python Environment Information",
"userDescription": "%python.languageModelTools.python_environment.userDescription%",
"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.",
Expand All @@ -1490,7 +1490,7 @@
"when": "!pythonEnvExtensionInstalled"
},
{
"name": "python_install_package",
"name": "install_python_package",
"displayName": "Install Python Package",
"userDescription": "%python.languageModelTools.python_install_package.userDescription%",
"modelDescription": "Installs Python packages in the given workspace. Use this tool to install packages in the user's chosen environment.",
Expand Down
2 changes: 1 addition & 1 deletion src/client/chat/getPythonEnvTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class GetEnvironmentInfoTool implements LanguageModelTool<IResourceRefere
private readonly terminalExecutionService: TerminalCodeExecutionProvider;
private readonly pythonExecFactory: IPythonExecutionFactory;
private readonly processServiceFactory: IProcessServiceFactory;
public static readonly toolName = 'python_environment';
public static readonly toolName = 'get_python_environment';
constructor(
private readonly api: PythonExtension['environments'],
private readonly serviceContainer: IServiceContainer,
Expand Down
2 changes: 1 addition & 1 deletion src/client/chat/installPackagesTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface IInstallPackageArgs {
}

export class InstallPackagesTool implements LanguageModelTool<IInstallPackageArgs> {
public static readonly toolName = 'python_install_package';
public static readonly toolName = 'install_python_package';
constructor(
private readonly api: PythonExtension['environments'],
private readonly serviceContainer: IServiceContainer,
Expand Down
Loading