/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: b01bcea443f7
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const Metric$inboundSchema = z.object({
    train_loss: z.nullable(z.number()).optional(),
    valid_loss: z.nullable(z.number()).optional(),
    valid_mean_token_accuracy: z.nullable(z.number()).optional(),
}).transform((v) => {
    return remap$(v, {
        "train_loss": "trainLoss",
        "valid_loss": "validLoss",
        "valid_mean_token_accuracy": "validMeanTokenAccuracy",
    });
});
export function metricFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Metric$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Metric' from JSON`);
}
//# sourceMappingURL=metric.js.map