( content: NonNullable<ToolResultBlockParam['content']>, )
| 524 | } |
| 525 | |
| 526 | function hasImageBlock( |
| 527 | content: NonNullable<ToolResultBlockParam['content']>, |
| 528 | ): boolean { |
| 529 | return ( |
| 530 | Array.isArray(content) && |
| 531 | content.some( |
| 532 | b => typeof b === 'object' && 'type' in b && b.type === 'image', |
| 533 | ) |
| 534 | ) |
| 535 | } |
| 536 | |
| 537 | function contentSize( |
| 538 | content: NonNullable<ToolResultBlockParam['content']>, |
no outgoing calls
no test coverage detected