You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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.",
516
516
"toolReferenceName": "pythonGetEnvironmentInfo",
517
-
"tags": [],
517
+
"tags": [
518
+
"ms-python.python"
519
+
],
518
520
"icon": "$(files)",
519
521
"canBeReferencedInPrompt": true,
520
522
"inputSchema": {
@@ -533,9 +535,12 @@
533
535
{
534
536
"name": "python_install_package",
535
537
"displayName": "Install Python Package",
538
+
"userDescription": "Installs Python packages in the given workspace",
536
539
"modelDescription": "Installs Python packages in the given workspace. Use this tool to install packages in the user's chosen environment.",
@@ -141,6 +141,7 @@ function BuildEnvironmentInfoContent(envInfo: EnvironmentInfo): LanguageModelTex
141
141
// Create a formatted string that looks like JSON but preserves comments
142
142
letenvTypeDescriptor: string=`This environment is managed by ${envInfo.type} environment manager. Use the install tool to install packages into this environment.`;
143
143
144
+
// TODO: If this is setup as python.defaultInterpreterPath, then do not include this message.
144
145
if(envInfo.type==='system'){
145
146
envTypeDescriptor=
146
147
'System pythons are pythons that ship with the OS or are installed globally. These python installs may be used by the OS for running services and core functionality. Confirm with the user before installing packages into this environment, as it can lead to issues with any services on the OS.';
@@ -242,13 +243,46 @@ export class InstallPackageTool implements LanguageModelTool<IInstallPackageInpu
0 commit comments