(hint: OperationFileHint)
| 490 | Option.getOrElse(hint.mimeType, () => fallback); |
| 491 | |
| 492 | const readHintEncoding = (hint: OperationFileHint): "base64" | "base64url" => |
| 493 | Option.getOrElse(hint.encoding, () => "base64"); |
| 494 | |
| 495 | const fileFromByteField = (body: unknown, hint: OperationFileHint): ToolFileValue | null => { |
| 496 | if (typeof body !== "object" || body === null || Array.isArray(body)) return null; |