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.",
499
+
"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.",
500
500
"toolReferenceName": "pythonGetEnvironmentInfo",
501
501
"tags": [],
502
502
"icon": "$(files)",
@@ -517,7 +517,7 @@
517
517
{
518
518
"name": "python_install_package_tool",
519
519
"displayName": "Install Python Package",
520
-
"modelDescription": "Installs Python packages in a workspace. You should call this when you want to install packages in the user's environment.",
520
+
"modelDescription": "Installs Python packages in the given workspace. Use this tool to install packages in the user's chosen environment.",
521
521
"toolReferenceName": "pythonInstallPackage",
522
522
"tags": [],
523
523
"icon": "$(package)",
@@ -534,7 +534,7 @@
534
534
},
535
535
"workspacePath": {
536
536
"type": "string",
537
-
"description": "The path to the Python workspace to identify which environment to install packages in."
537
+
"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