(eventId: number, event: StreamBatchEvent['event'])
| 17 | import type { StreamBatchEvent } from '@/lib/copilot/request/session/types' |
| 18 | |
| 19 | function toBatchEvent(eventId: number, event: StreamBatchEvent['event']): StreamBatchEvent { |
| 20 | return { |
| 21 | eventId, |
| 22 | streamId: event.stream.streamId, |
| 23 | event, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | function buildUserMessage(id: string, content: string) { |
| 28 | return normalizeMessage({ |
no outgoing calls
no test coverage detected