chat-ui / src /lib /types /Conversation.ts
victor's picture
victor HF staff
Prettier update (#54)
5da61b4 unverified
raw
history blame
No virus
282 Bytes
import type { ObjectId } from "mongodb";
import type { Message } from "./Message";
export interface Conversation {
_id: ObjectId;
// Can be undefined for shared convo then deleted
sessionId: string;
title: string;
messages: Message[];
createdAt: Date;
updatedAt: Date;
}