(b: unknown)
| 2430 | } |
| 2431 | |
| 2432 | function isToolResultBlock(b: unknown): b is ToolResultBlock { |
| 2433 | return ( |
| 2434 | typeof b === 'object' && |
| 2435 | b !== null && |
| 2436 | (b as ToolResultBlock).type === 'tool_result' && |
| 2437 | typeof (b as ToolResultBlock).tool_use_id === 'string' |
| 2438 | ) |
| 2439 | } |
| 2440 | |
| 2441 | /** |
| 2442 | * Check whether a user message's content contains tool_result blocks. |
no outgoing calls
no test coverage detected