Skip to content

Commit ffe7f57

Browse files
authored
Remove 'unknown' from LanguageModelToolResult#constructor (microsoft#232284)
It should be on the content property but no need to be in the constructor.
1 parent 66b1d83 commit ffe7f57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/workbench/api/common/extHostTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4770,7 +4770,7 @@ export class LanguageModelError extends Error {
47704770
}
47714771

47724772
export class LanguageModelToolResult {
4773-
constructor(public content: (LanguageModelTextPart | LanguageModelPromptTsxPart | unknown)[]) { }
4773+
constructor(public content: (LanguageModelTextPart | LanguageModelPromptTsxPart)[]) { }
47744774

47754775
toJSON() {
47764776
return {

src/vscode-dts/vscode.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19897,7 +19897,7 @@ declare module 'vscode' {
1989719897
* Create a LanguageModelToolResult
1989819898
* @param content A list of tool result content parts
1989919899
*/
19900-
constructor(content: (LanguageModelTextPart | LanguageModelPromptTsxPart | unknown)[]);
19900+
constructor(content: (LanguageModelTextPart | LanguageModelPromptTsxPart)[]);
1990119901
}
1990219902

1990319903
/**

0 commit comments

Comments
 (0)