forked from Vizards/deepseek-v4-for-copilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvscode.proposed.languageModelThinkingPart.d.ts
More file actions
44 lines (37 loc) · 1.53 KB
/
vscode.proposed.languageModelThinkingPart.d.ts
File metadata and controls
44 lines (37 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copied from VS Code repository (src/vscode-dts/vscode.proposed.languageModelThinkingPart.d.ts).
// Defines the proposed `languageModelThinkingPart` API not yet in @types/vscode.
// To update: npx @vscode/dts dev
// Can be removed once the API graduates to stable.
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// version: 1
declare module 'vscode' {
/**
* A language model response part containing thinking/reasoning content.
* Thinking tokens represent the model's internal reasoning process that
* typically streams before the final response.
*/
export class LanguageModelThinkingPart {
/**
* The thinking/reasoning text content.
*/
value: string | string[];
/**
* Optional unique identifier for this thinking sequence.
*/
id?: string;
/**
* Optional metadata associated with this thinking sequence.
*/
metadata?: { readonly [key: string]: any };
/**
* Construct a thinking part with the given content.
* @param value The thinking text content.
* @param id Optional unique identifier for this thinking sequence.
* @param metadata Optional metadata associated with this thinking sequence.
*/
constructor(value: string | string[], id?: string, metadata?: { readonly [key: string]: any });
}
}