MCPcopy Create free account
hub / github.com/Noumena-Network/code / isThinkingBlock

Function isThinkingBlock

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

Source from the content-addressed store, hash-verified

4869 | BetaRedactedThinkingBlock
4870
4871function 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.

Callers 2

stripSignatureBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected