Skip to content

Commit 5f74093

Browse files
committed
feat: add conditional execution for Python agent tools
1 parent c7efb6e commit 5f74093

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,8 @@
15281528
}
15291529
},
15301530
"required": []
1531-
}
1531+
},
1532+
"when": "editorLangId == python || resourceLangId == python || notebookType == jupyter-notebook"
15321533
},
15331534
{
15341535
"name": "get_python_executable_details",
@@ -1553,7 +1554,8 @@
15531554
}
15541555
},
15551556
"required": []
1556-
}
1557+
},
1558+
"when": "editorLangId == python || resourceLangId == python || notebookType == jupyter-notebook"
15571559
},
15581560
{
15591561
"name": "install_python_packages",
@@ -1588,7 +1590,8 @@
15881590
"required": [
15891591
"packageList"
15901592
]
1591-
}
1593+
},
1594+
"when": "editorLangId == python || resourceLangId == python || notebookType == jupyter-notebook"
15921595
},
15931596
{
15941597
"name": "configure_python_environment",
@@ -1612,7 +1615,8 @@
16121615
}
16131616
},
16141617
"required": []
1615-
}
1618+
},
1619+
"when": "editorLangId == python || resourceLangId == python || notebookType == jupyter-notebook"
16161620
},
16171621
{
16181622
"name": "create_virtual_environment",

0 commit comments

Comments
 (0)