( value: unknown, )
| 40 | * footgun narrow. |
| 41 | */ |
| 42 | export function isContentPartArray( |
| 43 | value: unknown, |
| 44 | ): value is Array<ContentPart> { |
| 45 | return Array.isArray(value) && value.length > 0 && value.every(isContentPart) |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Normalize a tool's return value for transport: |
no outgoing calls
no test coverage detected