Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some API todos #204695

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/vscode-dts/vscode.proposed.chat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ declare module 'vscode' {
export enum ChatMessageRole {
System = 0,
User = 1,
// TODO@API name: align with ChatAgent (or whatever we'll rename that to)
Assistant = 2,
}

// ChatML
export class ChatMessage {
role: ChatMessageRole;
content: string;

// TODO@API is this a leftover from Role.Function? Should message just support a catch-all signature?
name?: string;

constructor(role: ChatMessageRole, content: string);
Expand Down