(block: ContentBlock | undefined)
| 327 | * Native reasoning blocks have textType === 'reasoning' but thinkingOpen === undefined. |
| 328 | */ |
| 329 | export const isNativeReasoningBlock = (block: ContentBlock | undefined): boolean => { |
| 330 | if (!block || block.type !== 'text') { |
| 331 | return false |
| 332 | } |
| 333 | return block.textType === 'reasoning' && block.thinkingOpen === undefined |
| 334 | } |
| 335 | |
| 336 | /** |
| 337 | * Closes native reasoning blocks within a specific agent's blocks. |
no outgoing calls
no test coverage detected