Skip to content

Commit 596245b

Browse files
committed
Updates
1 parent bd14f1a commit 596245b

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/client/chat/getExecutableTool.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { resolveFilePath } from './utils';
2121
import { traceError } from '../logging';
2222
import { ITerminalHelper } from '../common/terminal/types';
2323
import { IDiscoveryAPI } from '../pythonEnvironments/base/locator';
24-
import { ConfigurePythonEnvTool } from './configurePythonEnvTool';
2524

2625
export interface IResourceReference {
2726
resourcePath?: string;
@@ -46,18 +45,6 @@ export class GetExecutableTool implements LanguageModelTool<IResourceReference>
4645
options: LanguageModelToolInvocationOptions<IResourceReference>,
4746
token: CancellationToken,
4847
): Promise<LanguageModelToolResult> {
49-
if (!ConfigurePythonEnvTool.EnvironmentConfigured) {
50-
return new LanguageModelToolResult([
51-
new LanguageModelTextPart(
52-
[
53-
`A Python environment is not configured. Please configure a Python environment first using the ${ConfigurePythonEnvTool.toolName}.`,
54-
`The ${ConfigurePythonEnvTool.toolName} tool will guide the user through the process of configuring a Python environment.`,
55-
'Once the environment is configured, you can use this tool to get the Python executable information.',
56-
].join('\n'),
57-
),
58-
]);
59-
}
60-
6148
const resourcePath = resolveFilePath(options.input.resourcePath);
6249

6350
try {

src/client/chat/getPythonEnvTool.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { getEnvironmentDetails, raceCancellationError } from './utils';
2121
import { resolveFilePath } from './utils';
2222
import { getPythonPackagesResponse } from './listPackagesTool';
2323
import { ITerminalHelper } from '../common/terminal/types';
24-
import { ConfigurePythonEnvTool } from './configurePythonEnvTool';
2524

2625
export interface IResourceReference {
2726
resourcePath?: string;
@@ -55,18 +54,6 @@ export class GetEnvironmentInfoTool implements LanguageModelTool<IResourceRefere
5554
options: LanguageModelToolInvocationOptions<IResourceReference>,
5655
token: CancellationToken,
5756
): Promise<LanguageModelToolResult> {
58-
if (!ConfigurePythonEnvTool.EnvironmentConfigured) {
59-
return new LanguageModelToolResult([
60-
new LanguageModelTextPart(
61-
[
62-
`A Python environment is not configured. Please configure a Python environment first using the ${ConfigurePythonEnvTool.toolName}.`,
63-
`The ${ConfigurePythonEnvTool.toolName} tool will guide the user through the process of configuring a Python environment.`,
64-
'Once the environment is configured, you can use this tool to get the Python executable information.',
65-
].join('\n'),
66-
),
67-
]);
68-
}
69-
7057
const resourcePath = resolveFilePath(options.input.resourcePath);
7158

7259
try {

0 commit comments

Comments
 (0)