MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / generateId

Method generateId

packages/node-runtime/src/ai/chats.ts:351–353  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

349 }
350
351 private generateId(prefix: string): string {
352 return `${prefix}_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`
353 }
354
355 private parseMessageRow(row: AIMessageRow): AIMessage {
356 return {

Callers 6

createAIChatMethod · 0.95
addMessageMethod · 0.95
forkAIChatMethod · 0.95
insertMessageAfterMethod · 0.95
createAssistantMethod · 0.80
addConfigMethod · 0.80

Calls 1

nowMethod · 0.45

Tested by

no test coverage detected