Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,13 @@
"inputSchema": {
"type": "object",
"properties": {
"packageList": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of packages to install."
},
"resourcePath": {
"type": "string",
"description": "The path to the Python file or workspace for which a Python Environment needs to be configured."
Expand Down
6 changes: 5 additions & 1 deletion src/client/chat/createVirtualEnvTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ import { createVirtualEnvironment } from '../pythonEnvironments/creation/createE
import { traceError, traceVerbose, traceWarn } from '../logging';
import { StopWatch } from '../common/utils/stopWatch';

export class CreateVirtualEnvTool implements LanguageModelTool<IResourceReference> {
interface ICreateVirtualEnvToolParams extends IResourceReference {
packageList: string[]; // Added only becausewe have ability to create a virtual env with list of packages same tool within the in Python Env extension.
}

export class CreateVirtualEnvTool implements LanguageModelTool<ICreateVirtualEnvToolParams> {
private readonly terminalExecutionService: TerminalCodeExecutionProvider;
private readonly terminalHelper: ITerminalHelper;
private readonly recommendedEnvService: IRecommendedEnvironmentService;
Expand Down
Loading