(hint: OperationFileHint)
| 531 | Option.getOrElse(hint.mimeType, () => fallback); |
| 532 | |
| 533 | const readHintEncoding = (hint: OperationFileHint): "base64" | "base64url" => |
| 534 | Option.getOrElse(hint.encoding, () => "base64"); |
| 535 | |
| 536 | const fileFromByteField = (body: unknown, hint: OperationFileHint): ToolFileValue | null => { |
| 537 | if (typeof body !== "object" || body === null || Array.isArray(body)) return null; |