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

Function addRenderOnlyToolPendingBlock

src/stores/aiChat.ts:777–784  ·  view source on GitHub ↗
(toolName: string, params?: Record<string, unknown>, toolCallId?: string)

Source from the content-addressed store, hash-verified

775 }
776
777 const addRenderOnlyToolPendingBlock = (toolName: string, params?: Record<string, unknown>, toolCallId?: string) => {
778 const pendingBlock = createRenderOnlyToolPendingBlock(toolName, params, toolCallId)
779 if (!pendingBlock) return
780 const idx = getAiMessageIndex()
781 const blocks = targetBuffer.messages[idx].contentBlocks || []
782 blocks.push(pendingBlock)
783 updateAIMessage({ contentBlocks: [...blocks] })
784 }
785
786 const updateRenderOnlyToolResult = (
787 toolName: string,

Callers 2

sendMessageFunction · 0.85
editCurrentRoundOnlyFunction · 0.85

Calls 2

updateAIMessageFunction · 0.85

Tested by

no test coverage detected