(result: unknown)
| 57 | } |
| 58 | |
| 59 | function hasModelAttachment(result: unknown): boolean { |
| 60 | if (!result || typeof result !== 'object') { |
| 61 | return false |
| 62 | } |
| 63 | const attachment = (result as { attachment?: { type?: string } }).attachment |
| 64 | return ( |
| 65 | attachment?.type === 'image' || attachment?.type === 'file' || attachment?.type === 'document' |
| 66 | ) |
| 67 | } |
| 68 | |
| 69 | export async function executeVfsGrep( |
| 70 | params: Record<string, unknown>, |