/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 74bf3ed40b32
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const Prediction$inboundSchema = z
    .object({
    type: z.literal("content").default("content"),
    content: z.string().default(""),
});
/** @internal */
export const Prediction$outboundSchema = z.object({
    type: z.literal("content").default("content"),
    content: z.string().default(""),
});
export function predictionToJSON(prediction) {
    return JSON.stringify(Prediction$outboundSchema.parse(prediction));
}
export function predictionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Prediction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Prediction' from JSON`);
}
//# sourceMappingURL=prediction.js.map