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": "Returns the information about the Python environment for the given file or workspace. Information includes environment type, python version, run command and installed packages with versions.",
496
+
"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.",
497
497
"toolReferenceName": "pythonGetEnvironmentInfo",
498
498
"tags": [],
499
499
"icon": "$(files)",
@@ -514,7 +514,7 @@
514
514
{
515
515
"name": "python_install_package_tool",
516
516
"displayName": "Install Python Package",
517
-
"modelDescription": "Installs Python packages in a workspace. You should call this when you want to install packages in the user's environment.",
517
+
"modelDescription": "Installs Python packages in the given workspace. Use this tool to install packages in the user's chosen environment.",
518
518
"toolReferenceName": "pythonInstallPackage",
519
519
"tags": [],
520
520
"icon": "$(package)",
@@ -531,7 +531,7 @@
531
531
},
532
532
"workspacePath": {
533
533
"type": "string",
534
-
"description": "The path to the Python workspace to identify which environment to install packages in."
534
+
"description": "Path to Python workspace that determines the environment for package installation."
// Create a formatted string that looks like JSON but preserves comments
136
+
letenvTypeStr: string=`This environment is managed by ${envInfo.type} environment manager. Use the install tool to install packages into this environment.`;
137
+
138
+
if(envInfo.type==='system'){
139
+
envTypeStr=
140
+
'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';
141
+
}
129
142
constcontent=`{
130
-
// type of python environment; sys means it is the system python
// command to run python in this environment, will include command with active environment if applicable. Opt to use this command to run python in this environment.
146
+
// Use this command to run python script or code in the terminal.
0 commit comments