/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: e4afdeb4b779
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
import * as openEnums from "../../types/enums.js";
export const TaskSupport = {
    Forbidden: "forbidden",
    Optional: "optional",
    Required: "required",
};
/** @internal */
export const TaskSupport$inboundSchema = openEnums.inboundSchema(TaskSupport);
/** @internal */
export const ToolExecution$inboundSchema = z
    .object({
    taskSupport: z.nullable(TaskSupport$inboundSchema).optional(),
}).catchall(z.any());
export function toolExecutionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ToolExecution$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolExecution' from JSON`);
}
//# sourceMappingURL=toolexecution.js.map