(toolName: string, params?: Record<string, unknown>, toolCallId?: string)
| 765 | } |
| 766 | |
| 767 | const addToolBlock = (toolName: string, params?: Record<string, unknown>, toolCallId?: string) => { |
| 768 | const idx = getAiMessageIndex() |
| 769 | const blocks = targetBuffer.messages[idx].contentBlocks || [] |
| 770 | blocks.push({ |
| 771 | type: 'tool', |
| 772 | tool: { name: toolName, displayName: toolName, status: 'running', params, toolCallId }, |
| 773 | }) |
| 774 | updateAIMessage({ contentBlocks: [...blocks] }) |
| 775 | } |
| 776 | |
| 777 | const addRenderOnlyToolPendingBlock = (toolName: string, params?: Record<string, unknown>, toolCallId?: string) => { |
| 778 | const pendingBlock = createRenderOnlyToolPendingBlock(toolName, params, toolCallId) |
no test coverage detected