(toolName: string, params?: Record<string, unknown>, toolCallId?: string)
| 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, |
no test coverage detected