Skip to content

Commit ee3a68a

Browse files
committed
Updates
1 parent 186bedd commit ee3a68a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,13 @@
15831583
"inputSchema": {
15841584
"type": "object",
15851585
"properties": {
1586+
"packageList": {
1587+
"type": "array",
1588+
"items": {
1589+
"type": "string"
1590+
},
1591+
"description": "The list of packages to install."
1592+
},
15861593
"resourcePath": {
15871594
"type": "string",
15881595
"description": "The path to the Python file or workspace for which a Python Environment needs to be configured."

src/client/chat/createVirtualEnvTool.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ import { createVirtualEnvironment } from '../pythonEnvironments/creation/createE
4040
import { traceError, traceVerbose, traceWarn } from '../logging';
4141
import { StopWatch } from '../common/utils/stopWatch';
4242

43-
export class CreateVirtualEnvTool implements LanguageModelTool<IResourceReference> {
43+
interface ICreateVirtualEnvToolParams extends IResourceReference {
44+
packageList: string[]; // Added only becausewe have ability to create a virtual env with list of packages same tool within the in Python Env extension.
45+
}
46+
47+
export class CreateVirtualEnvTool implements LanguageModelTool<ICreateVirtualEnvToolParams> {
4448
private readonly terminalExecutionService: TerminalCodeExecutionProvider;
4549
private readonly terminalHelper: ITerminalHelper;
4650
private readonly recommendedEnvService: IRecommendedEnvironmentService;

0 commit comments

Comments
 (0)