Spaces:
Running
Running
import { type Message } from 'ai'; | |
export type ServerActionResult<Result> = Promise< | |
| Result | |
| { | |
error: string; | |
} | |
>; | |
/** | |
* @deprecated | |
*/ | |
export type DatasetImageEntity = { | |
url: string; | |
selected?: boolean; | |
name: string; | |
}; | |
/** | |
* @deprecated | |
*/ | |
export type MessageWithSelectedDataset = Message & { | |
dataset: DatasetImageEntity[]; | |
}; | |
export type MessageBase = { | |
role: 'user' | 'system' | 'assistant'; | |
content: string; | |
}; | |
export type ChatEntity = { | |
url: string; | |
id: string; | |
user: string; // email | |
messages: MessageBase[]; | |
}; | |