(hint: OperationFileHint)
| 536 | Option.getOrElse(hint.mimeType, () => fallback); |
| 537 | |
| 538 | const readHintEncoding = (hint: OperationFileHint): "base64" | "base64url" => |
| 539 | Option.getOrElse(hint.encoding, () => "base64"); |
| 540 | |
| 541 | const fileFromByteField = (body: unknown, hint: OperationFileHint): ToolFileValue | null => { |
| 542 | if (typeof body !== "object" || body === null || Array.isArray(body)) return null; |