True when `pending` is a ToolCall whose _streamIndex equals `index`.
( pending: StreamedMessagePart | null, index: number | string, )
| 277 | |
| 278 | /** True when `pending` is a ToolCall whose _streamIndex equals `index`. */ |
| 279 | function isPendingToolCallAtIndex( |
| 280 | pending: StreamedMessagePart | null, |
| 281 | index: number | string, |
| 282 | ): pending is ToolCall { |
| 283 | return pending !== null && isToolCall(pending) && pending._streamIndex === index; |
| 284 | } |
| 285 | |
| 286 | /** |
| 287 | * Append a fully-merged part to the message. |
no test coverage detected