MCPcopy Create free account
hub / github.com/IIIIQIIII/claude-code / isThinkingBlock

Function isThinkingBlock

src/utils/messages.ts:4771–4775  ·  view source on GitHub ↗
(
  block: ContentBlockParam | ContentBlock | BetaContentBlock,
)

Source from the content-addressed store, hash-verified

4769 | BetaRedactedThinkingBlock
4770
4771function 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.

Callers 2

stripSignatureBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected