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

Function createUserMessageId

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

Source from the content-addressed store, hash-verified

12
13/** User message IDs: user-{timestamp}-{random} */
14export const createUserMessageId = (): string => `user-${Date.now()}-${randomSuffix(9)}`;
15
16/** Assistant message IDs: assistant-{timestamp}-{random} */
17export const createAssistantMessageId = (): string => `assistant-${Date.now()}-${randomSuffix(9)}`;

Callers 5

sendMessageMethod · 0.90
streamWithHistoryMethod · 0.90
askSideQuestionFunction · 0.90

Calls 1

randomSuffixFunction · 0.85

Tested by

no test coverage detected