MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createAiMessageShell

Function createAiMessageShell

cli/src/utils/send-message-helpers.ts:36–42  ·  view source on GitHub ↗
(messageId: string)

Source from the content-addressed store, hash-verified

34})
35
36export const createAiMessageShell = (messageId: string): ChatMessage => ({
37 id: messageId,
38 variant: 'ai',
39 content: '',
40 blocks: [],
41 timestamp: formatTimestamp(),
42})
43
44export const createErrorMessage = (content: string): ChatMessage => ({
45 id: `error-${Date.now()}`,

Callers 2

useSendMessageFunction · 0.90

Calls 1

formatTimestampFunction · 0.90

Tested by

no test coverage detected