File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 603603 "inputSchema" : {
604604 "type" : " object" ,
605605 "properties" : {
606+ "packageList" : {
607+ "type" : " array" ,
608+ "items" : {
609+ "type" : " string"
610+ },
611+ "description" : " The list of packages to install."
612+ },
606613 "resourcePath" : {
607614 "type" : " string" ,
608615 "description" : " The path to the Python file or workspace for which a Python Environment needs to be configured."
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { SysPythonManager } from '../../managers/builtin/sysPythonManager';
2020import { ensureGlobalEnv } from '../../managers/builtin/venvUtils' ;
2121
2222export interface IResourceReference {
23+ packageList ?: string [ ] ;
2324 resourcePath ?: string ;
2425}
2526
@@ -41,6 +42,10 @@ export class CreateQuickVirtualEnvironmentTool implements LanguageModelTool<IRes
4142 selectEnvironment : true ,
4243 quickCreate : true ,
4344 uri : resourcePath ,
45+ additionalPackages :
46+ Array . isArray ( options . input . packageList ) && options . input . packageList . length
47+ ? options . input . packageList
48+ : [ ] ,
4449 } ) ;
4550 if ( env ) {
4651 const message = await getEnvironmentDetails (
You can’t perform that action at this time.
0 commit comments