(
toolName: string,
toolCallId: string | undefined,
charts: ChartPayload[],
errorBlock: ReturnType<typeof toRenderOnlyToolErrorBlock>
)
| 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, |
no test coverage detected