Add missing 'name' property to LanguageModelChatAssistantMessage (#208235)

This commit is contained in:
Rob Lourens 2024-03-21 19:24:18 -03:00 committed by GitHub
parent 8852f4a954
commit 774f610801
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View file

@ -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;
}
}

View file

@ -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);
}
/**