MCPcopy
hub / github.com/coder/mux / createAssistantMessageId

Function createAssistantMessageId

src/node/services/utils/messageIds.ts:17–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16/** Assistant message IDs: assistant-{timestamp}-{random} */
17export const createAssistantMessageId = (): string => `assistant-${Date.now()}-${randomSuffix(9)}`;
18
19/** File snapshot message IDs: file-snapshot-{timestamp}-{random} */
20export const createFileSnapshotMessageId = (): string =>

Callers 4

streamMessageMethod · 0.90
resolveAgentForStreamFunction · 0.90
askSideQuestionFunction · 0.90

Calls 1

randomSuffixFunction · 0.85

Tested by

no test coverage detected