( block: ContentBlockParam | ContentBlock | BetaContentBlock, )
| 4769 | | BetaRedactedThinkingBlock |
| 4770 | |
| 4771 | function isThinkingBlock( |
| 4772 | block: ContentBlockParam | ContentBlock | BetaContentBlock, |
| 4773 | ): block is ThinkingBlockType { |
| 4774 | return block.type === 'thinking' || block.type === 'redacted_thinking' |
| 4775 | } |
| 4776 | |
| 4777 | /** |
| 4778 | * Filter trailing thinking blocks from the last message if it's an assistant message. |
no outgoing calls
no test coverage detected