| 1 | export type ChatMessage = { |
| 2 | id: string; |
| 3 | content: string; |
| 4 | user: string; |
| 5 | role: "user" | "assistant"; |
| 6 | }; |
| 7 | |
| 8 | export type Message = |
| 9 | | { |
| 10 | type: "add"; |
| 11 | id: string; |
| 12 | content: string; |
| 13 | user: string; |
| 14 | role: "user" | "assistant"; |
| 15 | } |
| 16 | | { |
| 17 | type: "update"; |
| 18 | id: string; |
| 19 | content: string; |
| 20 | user: string; |
| 21 | role: "user" | "assistant"; |
| 22 | } |
| 23 | | { |
| 24 | type: "all"; |
| 25 | messages: ChatMessage[]; |
| 26 | }; |
| 27 | |
| 28 | export const names = [ |
| 29 | "Alice", |
| 30 | "Bob", |
| 31 | "Charlie", |
| 32 | "David", |
| 33 | "Eve", |
| 34 | "Frank", |
| 35 | "Grace", |
| 36 | "Heidi", |
| 37 | "Ivan", |
| 38 | "Judy", |
| 39 | "Kevin", |
| 40 | "Linda", |
| 41 | "Mallory", |
| 42 | "Nancy", |
| 43 | "Oscar", |
| 44 | "Peggy", |
| 45 | "Quentin", |
| 46 | "Randy", |
| 47 | "Steve", |
| 48 | "Trent", |
| 49 | "Ursula", |
| 50 | "Victor", |
| 51 | "Walter", |
| 52 | "Xavier", |
| 53 | "Yvonne", |
| 54 | "Zoe", |
| 55 | ]; |