/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const OpenAIToolCallFunction$inboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
/** @internal */
export const OpenAIToolCallFunction$outboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
export function openAIToolCallFunctionToJSON(openAIToolCallFunction) {
    return JSON.stringify(OpenAIToolCallFunction$outboundSchema.parse(openAIToolCallFunction));
}
export function openAIToolCallFunctionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => OpenAIToolCallFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIToolCallFunction' from JSON`);
}
//# sourceMappingURL=openaitoolcallfunction.js.map