chat-ui / src /lib /types /Conversation.ts
coyotte508's picture
coyotte508 HF staff
Add MongoDB (#14)
cad3e14 unverified
raw
history blame
230 Bytes
import type { ObjectId } from 'mongodb';
import type { Message } from './Message';
export interface Conversation {
_id: ObjectId;
sessionId: string;
title: string;
messages: Message[];
createdAt: Date;
updatedAt: Date;
}