(message: Message)
| 5114 | } |
| 5115 | |
| 5116 | export function isThinkingMessage(message: Message): boolean { |
| 5117 | if (message.type !== 'assistant') return false |
| 5118 | if (!Array.isArray(message.message?.content)) return false |
| 5119 | return (message.message?.content as Array<{ type: string }>).every( |
| 5120 | block => block.type === 'thinking' || block.type === 'redacted_thinking', |
| 5121 | ) |
| 5122 | } |
| 5123 | |
| 5124 | /** |
| 5125 | * Count total calls to a specific tool in message history |
no outgoing calls
no test coverage detected