(blocks?: ContentBlock[])
| 38 | ] as const |
| 39 | |
| 40 | const hasProposedTools = (blocks?: ContentBlock[]): boolean => { |
| 41 | if (!blocks || blocks.length === 0) return false |
| 42 | |
| 43 | return blocks.some( |
| 44 | (block) => block.type === 'tool' && isProposedToolName(block.toolName), |
| 45 | ) |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Check if an agent is an implementor agent. |
no test coverage detected