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

Function isThinkingMessage

src/utils/messages.ts:4779–4785  ·  view source on GitHub ↗
(message: Message)

Source from the content-addressed store, hash-verified

4777}
4778
4779export function isThinkingMessage(message: Message): boolean {
4780 if (message.type !== 'assistant') return false
4781 if (!Array.isArray(message.message.content)) return false
4782 return message.message.content.every(
4783 block => block.type === 'thinking' || block.type === 'redacted_thinking',
4784 )
4785}
4786
4787/**
4788 * Count total calls to a specific tool in message history

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected