mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Add missing 'name' property to LanguageModelChatAssistantMessage (#208235)
This commit is contained in:
parent
8852f4a954
commit
774f610801
|
@ -4351,9 +4351,11 @@ export class LanguageModelChatUserMessage {
|
|||
|
||||
export class LanguageModelChatAssistantMessage {
|
||||
content: string;
|
||||
name?: string;
|
||||
|
||||
constructor(content: string) {
|
||||
constructor(content: string, name?: string) {
|
||||
this.content = content;
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -79,12 +79,18 @@ declare module 'vscode' {
|
|||
*/
|
||||
content: string;
|
||||
|
||||
/**
|
||||
* The optional name of a user for this message.
|
||||
*/
|
||||
name: string | undefined;
|
||||
|
||||
/**
|
||||
* Create a new assistant message.
|
||||
*
|
||||
* @param content The content of the message.
|
||||
* @param name The optional name of a user for the message.
|
||||
*/
|
||||
constructor(content: string);
|
||||
constructor(content: string, name?: string);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue