MCPcopy Create free account
hub / github.com/DSGWJQ/Feagent / createMessage

Function createMessage

web/src/hooks/useWorkflowAI.ts:28–33  ·  view source on GitHub ↗
(content: string, role: ChatMessage['role'])

Source from the content-addressed store, hash-verified

26}
27
28const createMessage = (content: string, role: ChatMessage['role']): ChatMessage => ({
29 id: `${role}_${Date.now()}_${Math.random().toString(16).slice(2)}`,
30 role,
31 content,
32 timestamp: Date.now(),
33});
34
35export const useWorkflowAI = ({
36 workflowId,

Callers 1

useWorkflowAIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected