/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 5d93876e4d19
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { MessageTokens$inboundSchema } from "./messagetokens.js";
/** @internal */
export const PromptTokensDetails$inboundSchema = z.object({
    messages: z.array(MessageTokens$inboundSchema).optional(),
    cached_tokens: z.int().default(0),
}).transform((v) => {
    return remap$(v, {
        "cached_tokens": "cachedTokens",
    });
});
export function promptTokensDetailsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PromptTokensDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PromptTokensDetails' from JSON`);
}
//# sourceMappingURL=prompttokensdetails.js.map