mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
missing file
This commit is contained in:
parent
4a399a3b28
commit
ede4993ab5
21
app/lib/persistence/message.ts
Normal file
21
app/lib/persistence/message.ts
Normal 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;
|
Loading…
Reference in New Issue
Block a user