vision-agent / lib /types.ts
MingruiZhang's picture
multi image
a8e1cb0
raw
history blame
546 Bytes
import { type Message } from 'ai';
import { CreateMessage } from 'ai/react/dist';
export interface Chat extends Record<string, any> {
id: string;
title: string;
createdAt: Date;
userId: string;
path: string;
messages: Message[];
sharePath?: string;
}
export type ServerActionResult<Result> = Promise<
| Result
| {
error: string;
}
>;
export type DatasetImageEntity = {
url: string;
selected: boolean;
name: string;
};
export type MessageWithSelectedDataset = (Message | CreateMessage) & {
dataset: DatasetImageEntity[];
};