(content: string, uuid?: string)
| 18 | } from './sessionStorage.js' |
| 19 | |
| 20 | function createUserMessage(content: string, uuid?: string): any { |
| 21 | return { |
| 22 | type: 'user', |
| 23 | uuid: uuid ?? randomUUID(), |
| 24 | timestamp: new Date().toISOString(), |
| 25 | message: { content }, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | function createAssistantMessage(content: string, uuid?: string): any { |
| 30 | return { |
no test coverage detected