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

Function updateRenderOnlyToolResult

src/stores/aiChat.ts:786–798  ·  view source on GitHub ↗
(
      toolName: string,
      toolCallId: string | undefined,
      charts: ChartPayload[],
      errorBlock: ReturnType<typeof toRenderOnlyToolErrorBlock>
    )

Source from the content-addressed store, hash-verified

784 }
785
786 const updateRenderOnlyToolResult = (
787 toolName: string,
788 toolCallId: string | undefined,
789 charts: ChartPayload[],
790 errorBlock: ReturnType<typeof toRenderOnlyToolErrorBlock>
791 ) => {
792 const idx = getAiMessageIndex()
793 const blocks = targetBuffer.messages[idx].contentBlocks || []
794
795 updateAIMessage({
796 contentBlocks: finishRenderOnlyToolResultBlocks(blocks, toolName, toolCallId, charts, errorBlock),
797 })
798 }
799
800 const updateToolBlockStatus = (
801 toolName: string,

Callers 2

sendMessageFunction · 0.85
editCurrentRoundOnlyFunction · 0.85

Calls 2

updateAIMessageFunction · 0.85

Tested by

no test coverage detected