MCPcopy Index your code
hub / github.com/simstudioai/sim / toBatchEvent

Function toBatchEvent

apps/sim/lib/copilot/chat/effective-transcript.test.ts:19–25  ·  view source on GitHub ↗
(eventId: number, event: StreamBatchEvent['event'])

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected