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

Function appendChartsToBlocks

src/stores/aiChat.ts:713–719  ·  view source on GitHub ↗
(charts: ChartPayload[])

Source from the content-addressed store, hash-verified

711 }
712
713 const appendChartsToBlocks = (charts: ChartPayload[]) => {
714 if (charts.length === 0) return
715 const idx = getAiMessageIndex()
716 const blocks = targetBuffer.messages[idx].contentBlocks || []
717 blocks.push(...toChartContentBlocks(charts))
718 updateAIMessage({ contentBlocks: [...blocks] })
719 }
720
721 const appendEvidenceToBlocks = (evidence: ChatEvidencePayload) => {
722 const idx = getAiMessageIndex()

Callers 2

sendMessageFunction · 0.85
editCurrentRoundOnlyFunction · 0.85

Calls 2

toChartContentBlocksFunction · 0.90
updateAIMessageFunction · 0.85

Tested by

no test coverage detected