( content: CallToolResult['content'][number], )
| 37 | } |
| 38 | |
| 39 | export function getTextContent( |
| 40 | content: CallToolResult['content'][number], |
| 41 | ): string { |
| 42 | if (content.type === 'text') { |
| 43 | return content.text; |
| 44 | } |
| 45 | throw new Error(`Expected text content but got ${content.type}`); |
| 46 | } |
| 47 | |
| 48 | export function getImageContent(content: CallToolResult['content'][number]): { |
| 49 | data: string; |
no outgoing calls
searching dependent graphs…