( toolName: string | undefined, params?: Record<string, unknown>, toolCallId?: string )
| 37 | } |
| 38 | |
| 39 | export function createRenderOnlyToolPendingBlock( |
| 40 | toolName: string | undefined, |
| 41 | params?: Record<string, unknown>, |
| 42 | toolCallId?: string |
| 43 | ): RenderOnlyToolPendingBlock | null { |
| 44 | if (!toolName || !isRenderOnlyTool(toolName)) return null |
| 45 | const name = toolName |
| 46 | |
| 47 | return { |
| 48 | type: 'tool', |
| 49 | tool: { |
| 50 | name, |
| 51 | displayName: name, |
| 52 | status: 'running', |
| 53 | params, |
| 54 | toolCallId, |
| 55 | transient: true, |
| 56 | }, |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | function isMatchingPendingRenderOnlyToolBlock( |
| 61 | block: unknown, |
no test coverage detected