/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: b36c9deaf6ca
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
import { smartUnion } from "../../types/smartUnion.js";
/** @internal */
export const Answer$inboundSchema = smartUnion([
    z.string(),
    z.number(),
]);
export function answerFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Answer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Answer' from JSON`);
}
/** @internal */
export const JudgeOutput$inboundSchema = z
    .object({
    analysis: z.string(),
    answer: smartUnion([z.string(), z.number()]),
});
export function judgeOutputFromJSON(jsonString) {
    return safeParse(jsonString, (x) => JudgeOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JudgeOutput' from JSON`);
}
//# sourceMappingURL=judgeoutput.js.map