mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
26 lines
948 B
TypeScript
26 lines
948 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
declare module 'vscode' {
|
|
|
|
/**
|
|
* A progress update during an {@link LanguageModelTool.invoke} call.
|
|
*/
|
|
export interface ToolProgressStep {
|
|
/**
|
|
* A progress message that represents a chunk of work
|
|
*/
|
|
message?: string | MarkdownString;
|
|
/**
|
|
* An increment for discrete progress. Increments will be summed up until 100 (100%) is reached
|
|
*/
|
|
increment?: number;
|
|
}
|
|
|
|
export interface LanguageModelTool<T> {
|
|
invoke(options: LanguageModelToolInvocationOptions<T>, token: CancellationToken, progress: Progress<ToolProgressStep>): ProviderResult<LanguageModelToolResult>;
|
|
}
|
|
}
|