/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 51417fff99a1
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { Metric$inboundSchema } from "./metric.js";
/** @internal */
export const Checkpoint$inboundSchema = z
    .object({
    metrics: Metric$inboundSchema,
    step_number: z.int(),
    created_at: z.int(),
}).transform((v) => {
    return remap$(v, {
        "step_number": "stepNumber",
        "created_at": "createdAt",
    });
});
export function checkpointFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Checkpoint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Checkpoint' from JSON`);
}
//# sourceMappingURL=checkpoint.js.map