chat-ui / src /lib /types /Message.ts
nsarrazin's picture
nsarrazin HF staff
Add optional timestamps to messages (#294)
1eff97d unverified
raw
history blame
No virus
232 Bytes
import type { Timestamps } from "./Timestamps";
export type Message = Partial<Timestamps> & {
from: "user" | "assistant";
id: ReturnType<typeof crypto.randomUUID>;
content: string;
webSearchId?: string;
score?: -1 | 0 | 1;
};