(hint: OperationFileHint)
| 497 | Option.getOrElse(hint.mimeType, () => fallback); |
| 498 | |
| 499 | const readHintEncoding = (hint: OperationFileHint): "base64" | "base64url" => |
| 500 | Option.getOrElse(hint.encoding, () => "base64"); |
| 501 | |
| 502 | const fileFromByteField = (body: unknown, hint: OperationFileHint): ToolFileValue | null => { |
| 503 | if (typeof body !== "object" || body === null || Array.isArray(body)) return null; |