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
Configuration tool with improved workflow and UX (#25106)
The new tool `Configure Python` will get invoked before other tools (at
least if Model decides to do so)
* We prompt the user to create a virtual env with the latest stable
version of Python available
* If user cancels we prompt the user to select an existing Python env
https://github.com/user-attachments/assets/d4bfbadf-fcbf-4a17-b1b6-7670e16c8cf4
Copy file name to clipboardExpand all lines: package.json
+46-1Lines changed: 46 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1475,6 +1475,7 @@
1475
1475
"modelDescription": "This tool will retrieve the details of the Python Environment for the specified file or workspace. The details returned include the 1. Type of Environment (conda, venv, etec), 2. Version of Python, 3. List of all installed packages with their versions. ALWAYS call configure_python_environment before using this tool.",
1476
1476
"toolReferenceName": "pythonGetEnvironmentInfo",
1477
1477
"tags": [
1478
+
"extension_installed_by_tool",
1478
1479
"enable_other_tool_configure_python_environment"
1479
1480
],
1480
1481
"icon": "$(snake)",
@@ -1498,6 +1499,7 @@
1498
1499
"modelDescription": "This tool will retrieve the details of the Python Environment for the specified file or workspace. ALWAYS use this tool before executing any Python command in the terminal. This tool returns the details of how to construct the fully qualified path and or command including details such as arguments required to run Python in a terminal. Note: Instead of executing `python --version` or `python -c 'import sys; print(sys.executable)'`, use this tool to get the Python executable path to replace the `python` command. E.g. instead of using `python -c 'import sys; print(sys.executable)'`, use this tool to build the command `conda run -n <env_name> -c 'import sys; print(sys.executable)'`. ALWAYS call configure_python_environment before using this tool.",
1499
1500
"toolReferenceName": "pythonExecutableCommand",
1500
1501
"tags": [
1502
+
"extension_installed_by_tool",
1501
1503
"enable_other_tool_configure_python_environment"
1502
1504
],
1503
1505
"icon": "$(terminal)",
@@ -1521,6 +1523,7 @@
1521
1523
"modelDescription": "Installs Python packages in the given workspace. Use this tool to install packages in the user's chosen environment. ALWAYS call configure_python_environment before using this tool.",
1522
1524
"toolReferenceName": "pythonInstallPackage",
1523
1525
"tags": [
1526
+
"extension_installed_by_tool",
1524
1527
"enable_other_tool_configure_python_environment"
1525
1528
],
1526
1529
"icon": "$(package)",
@@ -1552,7 +1555,9 @@
1552
1555
"modelDescription": "This tool configures a Python environment in the given workspace. ALWAYS Use this tool to set up the user's chosen environment and ALWAYS call this tool before using any other Python related tools.",
0 commit comments