(m: {
type: string;
message?: {
content: Array<{
type: string;
}>;
};
})
| 589 | } |
| 590 | } |
| 591 | export function hasThinkingContent(m: { |
| 592 | type: string; |
| 593 | message?: { |
| 594 | content: Array<{ |
| 595 | type: string; |
| 596 | }>; |
| 597 | }; |
| 598 | }): boolean { |
| 599 | if (m.type !== 'assistant' || !m.message) return false; |
| 600 | return m.message.content.some(b => b.type === 'thinking' || b.type === 'redacted_thinking'); |
| 601 | } |
| 602 | |
| 603 | /** Exported for testing */ |
| 604 | export function areMessagePropsEqual(prev: Props, next: Props): boolean { |
no outgoing calls
no test coverage detected