(id: string)
| 36 | } |
| 37 | |
| 38 | function user(id: string) { |
| 39 | return { |
| 40 | type: "message.updated", |
| 41 | properties: { |
| 42 | sessionID: "session-1", |
| 43 | info: { |
| 44 | id, |
| 45 | role: "user", |
| 46 | }, |
| 47 | }, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | function text(input: { id: string; messageID: string; text: string; time?: Record<string, number> }) { |
| 52 | return { |