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

Function appendErrorToBlocks

src/stores/aiChat.ts:760–765  ·  view source on GitHub ↗
(error: SerializedErrorInfo)

Source from the content-addressed store, hash-verified

758 }
759
760 const appendErrorToBlocks = (error: SerializedErrorInfo) => {
761 const idx = getAiMessageIndex()
762 const blocks = targetBuffer.messages[idx].contentBlocks || []
763 blocks.push({ type: 'error', error })
764 updateAIMessage({ contentBlocks: [...blocks] })
765 }
766
767 const addToolBlock = (toolName: string, params?: Record<string, unknown>, toolCallId?: string) => {
768 const idx = getAiMessageIndex()

Callers 2

sendMessageFunction · 0.85
editCurrentRoundOnlyFunction · 0.85

Calls 1

updateAIMessageFunction · 0.85

Tested by

no test coverage detected