MCPcopy Index your code
hub / github.com/Noumena-Network/code / createUserMessage

Function createUserMessage

src/utils/sessionStorage.test.ts:20–27  ·  view source on GitHub ↗
(content: string, uuid?: string)

Source from the content-addressed store, hash-verified

18} from './sessionStorage.js'
19
20function createUserMessage(content: string, uuid?: string): any {
21 return {
22 type: 'user',
23 uuid: uuid ?? randomUUID(),
24 timestamp: new Date().toISOString(),
25 message: { content },
26 }
27}
28
29function createAssistantMessage(content: string, uuid?: string): any {
30 return {

Callers 1

Calls 1

randomUUIDFunction · 0.90

Tested by

no test coverage detected