* Type guard for tool_reference block with tool_name.
( obj: unknown, )
| 489 | * Type guard for tool_reference block with tool_name. |
| 490 | */ |
| 491 | function isToolReferenceWithName( |
| 492 | obj: unknown, |
| 493 | ): obj is { type: 'tool_reference'; tool_name: string } { |
| 494 | return ( |
| 495 | isToolReferenceBlock(obj) && |
| 496 | 'tool_name' in (obj as object) && |
| 497 | typeof (obj as { tool_name: unknown }).tool_name === 'string' |
| 498 | ) |
| 499 | } |
| 500 | |
| 501 | /** |
| 502 | * Type representing a tool_result block with array content. |
no test coverage detected