vision-agent / lib /types.ts
MingruiZhang's picture
Fix deployment + Chat id pages (#5)
d0a1b70 unverified
raw
history blame
565 Bytes
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[];
};