missing file

This commit is contained in:
Brian Hackett 2025-03-18 19:52:20 -07:00
parent 4a399a3b28
commit ede4993ab5

View File

@ -0,0 +1,21 @@
// Client messages match the format used by the Nut protocol.
type MessageRole = 'user' | 'assistant';
interface MessageBase {
id: string;
role: MessageRole;
repositoryId?: string;
}
interface MessageText extends MessageBase {
type: 'text';
content: string;
}
interface MessageImage extends MessageBase {
type: 'image';
dataURL: string;
}
export type Message = MessageText | MessageImage;