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