( content: NonNullable<ToolResultBlockParam['content']>, )
| 507 | } |
| 508 | |
| 509 | function hasImageBlock( |
| 510 | content: NonNullable<ToolResultBlockParam['content']>, |
| 511 | ): boolean { |
| 512 | return ( |
| 513 | Array.isArray(content) && |
| 514 | content.some( |
| 515 | b => typeof b === 'object' && 'type' in b && b.type === 'image', |
| 516 | ) |
| 517 | ) |
| 518 | } |
| 519 | |
| 520 | function contentSize( |
| 521 | content: NonNullable<ToolResultBlockParam['content']>, |
no outgoing calls
no test coverage detected