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