(obj: unknown)
| 477 | * tool_reference is a beta feature not in the SDK types, so we need runtime checks. |
| 478 | */ |
| 479 | export function isToolReferenceBlock(obj: unknown): boolean { |
| 480 | return ( |
| 481 | typeof obj === 'object' && |
| 482 | obj !== null && |
| 483 | 'type' in obj && |
| 484 | (obj as { type: unknown }).type === 'tool_reference' |
| 485 | ) |
| 486 | } |
| 487 | |
| 488 | /** |
| 489 | * Type guard for tool_reference block with tool_name. |
no outgoing calls
no test coverage detected