(route: string, name: string, raw: string)
| 153 | * routes: `Invalid JSON input for <route> tool call <name>`. |
| 154 | */ |
| 155 | export const parseToolInput = (route: string, name: string, raw: string) => |
| 156 | parseJson(route, raw || "{}", `Invalid JSON input for ${route} tool call ${name}`) |
| 157 | |
| 158 | export const IMAGE_MIMES = ["image/png", "image/jpeg", "image/gif", "image/webp"] as const |
| 159 | export const VIDEO_MIMES = ["video/mp4", "video/webm", "video/quicktime"] as const |