/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: e30294bb59e8
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const FunctionT$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.string(), z.any()),
});
/** @internal */
export const FunctionT$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.string(), z.any()),
});
export function functionToJSON(functionT) {
    return JSON.stringify(FunctionT$outboundSchema.parse(functionT));
}
export function functionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FunctionT$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionT' from JSON`);
}
//# sourceMappingURL=function.js.map