/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 66cb476e3177
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const CompletionTokensDetails$inboundSchema = z.object({
    reasoning_tokens: z.int().default(0),
}).transform((v) => {
    return remap$(v, {
        "reasoning_tokens": "reasoningTokens",
    });
});
export function completionTokensDetailsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CompletionTokensDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompletionTokensDetails' from JSON`);
}
//# sourceMappingURL=completiontokensdetails.js.map