( block: ContentBlockParam | ContentBlock | BetaContentBlock, )
| 4869 | | BetaRedactedThinkingBlock |
| 4870 | |
| 4871 | function isThinkingBlock( |
| 4872 | block: ContentBlockParam | ContentBlock | BetaContentBlock, |
| 4873 | ): block is ThinkingBlockType { |
| 4874 | return block.type === 'thinking' || block.type === 'redacted_thinking' |
| 4875 | } |
| 4876 | |
| 4877 | /** |
| 4878 | * Filter trailing thinking blocks from the last message if it's an assistant message. |
no outgoing calls
no test coverage detected